Skip to content

Commit d08ca6c

Browse files
committed
Fix VC redistributable mismatch crash
1 parent 79f5561 commit d08ca6c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,8 @@ if(MSVC)
233233
_UNICODE # tell Windows to use the unicode version of string functions, as opposed to ASCII (https://docs.microsoft.com/en-us/windows/win32/learnwin32/working-with-strings)
234234
WIN32_LEAN_AND_MEAN # ignore some unnecessary Windows APIs
235235
NOMINMAX # don't let Windows create macros for MIN and MAX
236-
_SILENCE_CXX17_RESULT_OF_DEPRECATION_WARNING)
236+
_SILENCE_CXX17_RESULT_OF_DEPRECATION_WARNING
237+
_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR # See https://developercommunity.visualstudio.com/t/Visual-Studio-17100-Update-leads-to-Pr/10669759?sort=newest
237238
endif()
238239

239240
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")

0 commit comments

Comments
 (0)