mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-27 05:05:32 +03: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
@ -12,6 +12,8 @@ set(CMAKE_INSTALL_MESSAGE NEVER)
|
||||
|
||||
enable_testing()
|
||||
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
|
||||
add_custom_target(run
|
||||
COMMAND ${CMAKE_SOURCE_DIR}/Meta/run.sh
|
||||
USES_TERMINAL
|
||||
|
Loading…
Reference in New Issue
Block a user