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:
Lenny Maiorani 2020-11-11 15:59:06 -07:00 committed by Andreas Kling
parent f5ced347e6
commit ad72158ee0
Notes: sideshowbarker 2024-07-19 01:25:44 +09:00

View File

@ -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