From e696525bbb92ab346c9f3d00be1926db627656cb Mon Sep 17 00:00:00 2001 From: Simon Kallweit Date: Tue, 20 Aug 2024 16:40:44 +0200 Subject: [PATCH] disable constexpr mutex constructor --- src/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a42c2e51..a41ecda2 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -293,6 +293,7 @@ target_compile_definitions(sgl $<$:UNICODE> # force character map to unicode # MSVC C++ library. $<$:_USE_MATH_DEFINES> + $<$:_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR> # disable constexpr constructor for std::mutex # $<$:_SCL_SECURE_NO_WARNINGS> # $<$:_CRT_SECURE_NO_WARNINGS> # $<$:_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING>