Skip to content

Commit f075a48

Browse files
committed
✨ Enable CMAKE_EXPORT_COMPILE_COMMANDS
1 parent 72cb628 commit f075a48

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

cmake/build.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ include(CheckCXXCompilerFlag)
1818
# manger) puts it.
1919
set(LIBHAL_SCRIPT_PATH ${CMAKE_CURRENT_LIST_DIR})
2020

21+
# Generate compile commands for anyone using our libraries.
22+
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
23+
2124
# Colored LIBHAL text
2225
set(LIBHAL_TITLE "${BoldMagenta}[LIBHAL]:${ColourReset}")
2326

conanfile.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

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

0 commit comments

Comments
 (0)