Enable CMAKE_EXPORT_COMPILE_COMMANDS (#7804)

This setting instructs CMake to generate compile_commands.json for use
with clangd.
This commit is contained in:
Fawn
2025-03-21 21:32:49 -06:00
committed by GitHub
parent 6af3ab5875
commit 91233e6a73

View File

@@ -1,4 +1,5 @@
CMAKE_MINIMUM_REQUIRED(VERSION 3.13)
SET(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# Set the given policy to NEW. If it does not exist, it will not be set. If it
# is already set to NEW (most likely due to predating the minimum required CMake