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 c09cab3 commit e4832e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
cmake_minimum_required(VERSION 3.8 FATAL_ERROR)
project(fresnel LANGUAGES C CXX)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

add_subdirectory(CMake)
include(fresnel-macros)
Expand Down Expand Up @@ -137,7 +138,6 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/extern/random123/examples)
add_subdirectory(fresnel)

# 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 e4832e6

Please sign in to comment.