build: CMake's verify_header_sets disabled for import std;

This commit is contained in:
Mateusz Pusz
2024-07-29 11:20:15 +02:00
parent a8b79ff57f
commit 1788d9616f

View File

@ -252,7 +252,9 @@ class MPUnitsConan(ConanFile):
tc.absolute_paths = True # only needed for CMake CI
if self._build_all:
tc.cache_variables["CMAKE_EXPORT_COMPILE_COMMANDS"] = True
tc.cache_variables["CMAKE_VERIFY_INTERFACE_HEADER_SETS"] = True
tc.cache_variables[
"CMAKE_VERIFY_INTERFACE_HEADER_SETS"
] = not self.options.import_std
tc.cache_variables["MP_UNITS_DEV_BUILD_LA"] = not self._skip_la
if self._run_clang_tidy:
tc.cache_variables["MP_UNITS_DEV_CLANG_TIDY"] = True
@ -287,7 +289,8 @@ class MPUnitsConan(ConanFile):
if self._build_all or self.options.cxx_modules:
cmake.build()
if self._build_all:
cmake.build(target="all_verify_interface_header_sets")
if not self.options.import_std:
cmake.build(target="all_verify_interface_header_sets")
if can_run(self):
cmake.ctest(cli_args=["--output-on-failure"])