From 8cb8416ea56b4a8d672dd149dbd1d9dd44e27cca Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Sat, 17 Feb 2024 22:46:24 +0100 Subject: [PATCH] build(conan): `generate()` now set `cache_variables` --- conanfile.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/conanfile.py b/conanfile.py index aab04f5c..d197ad3d 100644 --- a/conanfile.py +++ b/conanfile.py @@ -151,12 +151,12 @@ class MPUnitsConan(ConanFile): def generate(self): tc = CMakeToolchain(self) if self._build_all: - tc.variables["CMAKE_VERIFY_INTERFACE_HEADER_SETS"] = True + tc.cache_variables["CMAKE_VERIFY_INTERFACE_HEADER_SETS"] = True if self.options.cxx_modules: - tc.variables["CMAKE_CXX_SCAN_FOR_MODULES"] = True - tc.variables["MP_UNITS_BUILD_CXX_MODULES"] = True - tc.variables["MP_UNITS_BUILD_LA"] = self._build_all and not self._skip_la - tc.variables["MP_UNITS_USE_FMTLIB"] = bool(self.options.use_fmtlib) + tc.cache_variables["CMAKE_CXX_SCAN_FOR_MODULES"] = True + tc.cache_variables["MP_UNITS_BUILD_CXX_MODULES"] = True + tc.cache_variables["MP_UNITS_BUILD_LA"] = self._build_all and not self._skip_la + tc.cache_variables["MP_UNITS_USE_FMTLIB"] = bool(self.options.use_fmtlib) tc.generate() deps = CMakeDeps(self) deps.generate()