mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:07:34 +00:00
CMake: compile_commands.json output
Problem: - CMake is not outputting `compile_commands.json`. - `compile_commands.json` is used by build integration tooling such as `clang-tidy`. Solution: - Enable `CMAKE_EXPORT_COMPILE_COMMANDS` option so that the file is output.
This commit is contained in:
parent
f5ced347e6
commit
ad72158ee0
1 changed files with 2 additions and 0 deletions
|
@ -12,6 +12,8 @@ set(CMAKE_INSTALL_MESSAGE NEVER)
|
||||||
|
|
||||||
enable_testing()
|
enable_testing()
|
||||||
|
|
||||||
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||||
|
|
||||||
add_custom_target(run
|
add_custom_target(run
|
||||||
COMMAND ${CMAKE_SOURCE_DIR}/Meta/run.sh
|
COMMAND ${CMAKE_SOURCE_DIR}/Meta/run.sh
|
||||||
USES_TERMINAL
|
USES_TERMINAL
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue