Skip to content

Commit

Permalink
Correctly generate compile_commands.json.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaander committed Sep 30, 2024
1 parent 8831d73 commit 5f16dc4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.15...3.27 FATAL_ERROR)
set(CMAKE_FIND_FRAMEWORK LAST)

project (HOOMD LANGUAGES C CXX)

# enlble compile_commands.json output
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

include(GNUInstallDirs)
Expand Down Expand Up @@ -218,7 +216,6 @@ install(FILES CMake/hoomd/FindTBB.cmake
DESTINATION ${CONFIG_INSTALL_DIR})

# enable compile_commands.json
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
if (NOT WIN32)
file(CREATE_LINK
"${CMAKE_BINARY_DIR}/compile_commands.json"
Expand Down

0 comments on commit 5f16dc4

Please sign in to comment.