Skip to content

Commit

Permalink
[MSVC] Define "_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR" to fix MSVC bina…
Browse files Browse the repository at this point in the history
…ry compatibility with newer STL implementations.
  • Loading branch information
LukasBanana committed Jun 9, 2024
1 parent 8e1a5c1 commit f370f62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ if(WIN32)
ADD_DEFINE(_SCL_SECURE_NO_WARNINGS)
ADD_DEFINE(UNICODE)
ADD_DEFINE(NOMINMAX)
ADD_DEFINE(_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR)
if(MSVC)
# Disable some warnings for MSVC compiler
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4250 /wd4251 /wd4290 /wd4103")
Expand Down

0 comments on commit f370f62

Please sign in to comment.