From 91233e6a73e67d5532ce04e5df548997cd69f3cc Mon Sep 17 00:00:00 2001 From: Fawn Date: Fri, 21 Mar 2025 21:32:49 -0600 Subject: [PATCH] Enable CMAKE_EXPORT_COMPILE_COMMANDS (#7804) This setting instructs CMake to generate compile_commands.json for use with clangd. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3c01bebf0..a93d7383a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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