From 05c5ca5871ff065287b0fcebbe3c40231db4fc8b Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Mon, 18 Nov 2024 14:17:52 +0100 Subject: [PATCH] build: missing compilation options added to `test_package` --- test_package/conanfile.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test_package/conanfile.py b/test_package/conanfile.py index ef15fe3cc..55141865a 100644 --- a/test_package/conanfile.py +++ b/test_package/conanfile.py @@ -42,6 +42,7 @@ def generate(self): opt = self.dependencies["mp-units"].options if opt.cxx_modules: tc.cache_variables["CMAKE_CXX_SCAN_FOR_MODULES"] = True + tc.cache_variables["MP_UNITS_BUILD_CXX_MODULES"] = True if opt.import_std: tc.cache_variables["CMAKE_CXX_MODULE_STD"] = True # Current experimental support according to `Help/dev/experimental.rst` @@ -54,6 +55,7 @@ def generate(self): tc.cache_variables["MP_UNITS_API_FREESTANDING"] = True else: tc.cache_variables["MP_UNITS_API_STD_FORMAT"] = opt.std_format + tc.cache_variables["MP_UNITS_API_NO_CRTP"] = opt.no_crtp tc.cache_variables["MP_UNITS_API_CONTRACTS"] = str(opt.contracts).upper() tc.generate()