From a06319c974342c41294fef601a8a873a3e488bfc Mon Sep 17 00:00:00 2001 From: Jan Date: Fri, 14 Jun 2024 10:40:05 +0200 Subject: Use old Mutex constructor to deal with redist incompatibility (#704) See GitHub PR for detailed explanation --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ab461ae2..23a8b7f5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,6 +20,8 @@ set(CMAKE_CXX_STANDARD 20) set(CMAKE_C_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_VS_PLATFORM_TOOLSET v143) +# Deal with MSVC incompatiblity +add_compile_definitions(_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR) # This determines the real binary root directory set(NS_BINARY_DIR ${CMAKE_BINARY_DIR}/game) -- cgit v1.2.3