From c14cc8f2f129c427422fc35b02ec78096a9fd67d Mon Sep 17 00:00:00 2001 From: ffiirree Date: Sun, 23 Jun 2024 21:57:32 +0800 Subject: [PATCH] fix!: build with VS 17.10, see https://github.com/microsoft/STL/issues/4730 --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 24eb56e..0cfa923 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -94,6 +94,7 @@ endif () target_compile_options(${PROJECT_NAME} PRIVATE $<$:/W4 /utf-8 /DUNICODE /D_UNICODE /DNOMINMAX /Zc:preprocessor /Zc:__cplusplus /wd5054> + $<$:/D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR> # VS 17.10: https://github.com/microsoft/STL/issues/4730 $<$>:-Wall -Wextra -Wpedantic -Wno-deprecated-enum-enum-conversion> )