Skip to content

Commit

Permalink
✨ Enable CMAKE_EXPORT_COMPILE_COMMANDS
Browse files Browse the repository at this point in the history
  • Loading branch information
kammce committed Mar 19, 2024
1 parent 72cb628 commit 31681ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions cmake/build.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ include(CheckCXXCompilerFlag)
# manger) puts it.
set(LIBHAL_SCRIPT_PATH ${CMAKE_CURRENT_LIST_DIR})

# Generate compile commands for anyone using our libraries.
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

# Colored LIBHAL text
set(LIBHAL_TITLE "${BoldMagenta}[LIBHAL]:${ColourReset}")

Expand Down
3 changes: 1 addition & 2 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

class libhal_cmake_util_conan(ConanFile):
name = "libhal-cmake-util"
version = "4.0.3"
version = "4.0.4"
license = "Apache-2.0"
homepage = "https://libhal.github.io/libhal-armcortex"
description = ("A collection of CMake scripts for ARM Cortex ")
Expand Down Expand Up @@ -91,4 +91,3 @@ def package_info(self):
f"add_build_outputs: {self.options.add_build_outputs}")
self.output.info(
f"optimize_debug_build: {self.options.optimize_debug_build}")

0 comments on commit 31681ce

Please sign in to comment.