Skip to content

Commit

Permalink
Always set compile commands export to ON
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipjohnston committed Jul 28, 2020
1 parent 00d096b commit 6c395e6
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions BuildOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,5 @@ if("${BUILD_SHARED_LIBS}" STREQUAL "")
)
endif()

set(default_compile_commands ON)
if("${CMAKE_EXPORT_COMPILE_COMMANDS}" STREQUAL "")
message(STATUS "Setting 'export compile commands' to '${default_compile_commands}' as no value was specified.")
set(CMAKE_EXPORT_COMPILE_COMMANDS ${default_compile_commands} CACHE
BOOL "Export compile_commands.json file."
FORCE
)
endif()
# Export compile_commands.json file.
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

0 comments on commit 6c395e6

Please sign in to comment.