mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +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
Notes:
sideshowbarker
2024-07-19 01:25:44 +09:00
Author: https://github.com/ldm5180 Commit: https://github.com/SerenityOS/serenity/commit/ad72158ee0a Pull-request: https://github.com/SerenityOS/serenity/pull/4057
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…
Reference in a new issue