Skip to content

Commit

Permalink
build: CMAKE_EXPORT_COMPILE_COMMANDS flag enabled for the developer…
Browse files Browse the repository at this point in the history
…'s build
  • Loading branch information
mpusz committed May 8, 2024
1 parent 5bac7d3 commit 999012d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/*",
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 999012d

Please sign in to comment.