Skip to content

Commit

Permalink
Store compile commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Adda0 committed Sep 6, 2023
1 parent f5fbdb0 commit 7cbfdca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ option(MATA_ENABLE_COVERAGE "Build with coverage compiler flags" OFF)

# Only do these if this is the main project, and not if it is included through add_subdirectory
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
# Store compile commands into 'build/compile_commands.json', which are needed, beside others, for linters.
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

option(MATA_BUILD_EXAMPLES "Build Mata examples" ON)

message("-- Default C++ compiler: ${CMAKE_CXX_COMPILER}")
Expand Down

0 comments on commit 7cbfdca

Please sign in to comment.