mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-30 18:37:15 +02:00
build: CMAKE_EXPORT_COMPILE_COMMANDS
flag enabled for the developer's build
This commit is contained in:
@ -73,6 +73,7 @@ class MPUnitsConan(ConanFile):
|
||||
"no_crtp": "auto",
|
||||
}
|
||||
tool_requires = "cmake/[>=3.29]"
|
||||
implements = "auto_header_only"
|
||||
exports = "LICENSE.md"
|
||||
exports_sources = (
|
||||
"docs/*",
|
||||
@ -220,6 +221,7 @@ class MPUnitsConan(ConanFile):
|
||||
def generate(self):
|
||||
tc = CMakeToolchain(self)
|
||||
if self._build_all:
|
||||
tc.cache_variables["CMAKE_EXPORT_COMPILE_COMMANDS"] = True
|
||||
tc.cache_variables["CMAKE_VERIFY_INTERFACE_HEADER_SETS"] = True
|
||||
tc.cache_variables["MP_UNITS_DEV_BUILD_LA"] = not self._skip_la
|
||||
if self._build_cxx_modules:
|
||||
@ -247,9 +249,6 @@ class MPUnitsConan(ConanFile):
|
||||
if can_run(self):
|
||||
cmake.ctest(cli_args=["--output-on-failure"])
|
||||
|
||||
def package_id(self):
|
||||
self.info.clear()
|
||||
|
||||
def package(self):
|
||||
copy(
|
||||
self,
|
||||
|
Reference in New Issue
Block a user