mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-31 19:04:27 +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
|
tc.absolute_paths = True # only needed for CMake CI
|
||||||
if self._build_all:
|
if self._build_all:
|
||||||
tc.cache_variables["CMAKE_EXPORT_COMPILE_COMMANDS"] = True
|
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
|
tc.cache_variables["MP_UNITS_DEV_BUILD_LA"] = not self._skip_la
|
||||||
if self._run_clang_tidy:
|
if self._run_clang_tidy:
|
||||||
tc.cache_variables["MP_UNITS_DEV_CLANG_TIDY"] = True
|
tc.cache_variables["MP_UNITS_DEV_CLANG_TIDY"] = True
|
||||||
@@ -287,6 +289,7 @@ class MPUnitsConan(ConanFile):
|
|||||||
if self._build_all or self.options.cxx_modules:
|
if self._build_all or self.options.cxx_modules:
|
||||||
cmake.build()
|
cmake.build()
|
||||||
if self._build_all:
|
if self._build_all:
|
||||||
|
if not self.options.import_std:
|
||||||
cmake.build(target="all_verify_interface_header_sets")
|
cmake.build(target="all_verify_interface_header_sets")
|
||||||
if can_run(self):
|
if can_run(self):
|
||||||
cmake.ctest(cli_args=["--output-on-failure"])
|
cmake.ctest(cli_args=["--output-on-failure"])
|
||||||
|
Reference in New Issue
Block a user