mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-29 18:07:16 +02:00
build: CMake's verify_header_sets
disabled for import std;
This commit is contained in:
@ -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"])
|
||||
|
||||
|
Reference in New Issue
Block a user