Skip to content

Commit

Permalink
set CMAKE_EXPORT_COMPILE_COMMANDS unconditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
rbx committed Jun 15, 2021
1 parent 2e65582 commit ab54668
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmake/FairMQProjectSettings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ if(NOT CMAKE_POSITION_INDEPENDENT_CODE)
endif()

# Generate compile_commands.json file (https://clang.llvm.org/docs/JSONCompilationDatabase.html)
if(NOT DEFINED CMAKE_EXPORT_COMPILE_COMMANDS)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
endif()
set(CMAKE_EXPORT_COMPILE_COMMANDS "ON")

# Define install dirs
set(PROJECT_INSTALL_BINDIR ${CMAKE_INSTALL_BINDIR})
Expand Down

0 comments on commit ab54668

Please sign in to comment.