diff --git a/conanfile.py b/conanfile.py index 8067e6b..ff84864 100644 --- a/conanfile.py +++ b/conanfile.py @@ -119,6 +119,9 @@ def build_requirements(self): def generate(self): tc = CMakeToolchain(self) + + tc.preprocessor_definitions["_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR"] = 1 + if is_msvc(self): tc.variables["USE_MSVC_RUNTIME_LIBRARY_DLL"] = not is_msvc_static_runtime(self) tc.cache_variables["CMAKE_POLICY_DEFAULT_CMP0077"] = "NEW"