From d08ca6c92f5dcb57664ef5c284781d44de4c1a7e Mon Sep 17 00:00:00 2001 From: Sean Lilley Date: Tue, 3 Sep 2024 22:18:42 -0400 Subject: [PATCH] Fix VC redistributable mismatch crash --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c738dbcf..0091f13d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -233,7 +233,8 @@ if(MSVC) _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) WIN32_LEAN_AND_MEAN # ignore some unnecessary Windows APIs NOMINMAX # don't let Windows create macros for MIN and MAX - _SILENCE_CXX17_RESULT_OF_DEPRECATION_WARNING) + _SILENCE_CXX17_RESULT_OF_DEPRECATION_WARNING + _DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR # See https://developercommunity.visualstudio.com/t/Visual-Studio-17100-Update-leads-to-Pr/10669759?sort=newest endif() if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")