Skip to content

Commit

Permalink
Merge pull request #1411 from ldrumm/CMAKE_EXPORT_COMPILE_COMMANDS
Browse files Browse the repository at this point in the history
[cmake] Always generate compile_commands.json
  • Loading branch information
kbenzie authored Mar 8, 2024
2 parents 24140ee + 9874f36 commit 7a5150c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ set(UR_CONFORMANCE_TARGET_TRIPLES "" CACHE STRING
"List of sycl targets to build CTS device binaries for")
set(UR_CONFORMANCE_AMD_ARCH "" CACHE STRING "AMD device target ID to build CTS binaries for")

# There's little reason not to generate the compile_commands.json
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

include(Assertions)

set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
Expand Down

0 comments on commit 7a5150c

Please sign in to comment.