diff --git a/conanfile.py b/conanfile.py index 760e8026c..dc57a1d09 100644 --- a/conanfile.py +++ b/conanfile.py @@ -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 @@ def layout(self): 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 @@ def build(self): if can_run(self): cmake.ctest(cli_args=["--output-on-failure"]) - def package_id(self): - self.info.clear() - def package(self): copy( self,