Skip to content

Commit

Permalink
CMakeLists: Add CMAKE_EXPORT_COMPILE_COMMANDS flag
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei-Fabian-Pop <[email protected]>
  • Loading branch information
Andrei-Fabian-Pop committed Dec 3, 2024
1 parent eb73a67 commit 85d12e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,4 @@ gui/include/gui/style_properties.h
gui/include/gui/style_attributes.h
*style_properties.h
*style_attributes.h
compile_commands.json
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ else()
message(STATUS "Not using ccache.")
endif()

# Create the "compile_commands.json" file
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

# Make sure our local CMake Modules path comes first
list(INSERT CMAKE_MODULE_PATH 0 ${PROJECT_SOURCE_DIR}/cmake/Modules)

Expand Down

0 comments on commit 85d12e7

Please sign in to comment.