Files
dppbots/cmake/compileCommands.cmake
Lyra 2bd126f46f
Some checks failed
Build / Build (push) Failing after 31s
Initial project setup
2026-05-31 22:33:57 -04:00

15 lines
361 B
CMake

##### SETUP COMPILE COMMANDS #####
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
set(CMAKE_EXPORT_COMPILE_COMMANDS on)
endif()
if(EXISTS "${CMAKE_BINARY_DIR}/compile_commands.json")
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
file(
COPY "${CMAKE_BINARY_DIR}/compile_commands.json"
DESTINATION "${CMAKE_BINARY_DIR}/../"
)
endif()
endif()