From 4e2005d3b0157a6bcce5d6db5b721076ef375143 Mon Sep 17 00:00:00 2001 From: DorianBDev Date: Wed, 8 Nov 2023 19:39:58 +0100 Subject: [PATCH] Added compile commands export to support cland. --- .gitignore | 1 + CMakeLists.txt | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index 57705ddf..bce7c618 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ build/* .vs/ .vscode/ .cache/ +.clangd etc/installer/packages/Degate/data/* !etc/installer/packages/Degate/data/.keepme diff --git a/CMakeLists.txt b/CMakeLists.txt index e6d02924..af092cef 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,6 +45,10 @@ add_definitions(-DBOOST_NO_CXX11_SCOPED_ENUMS) # set_property(GLOBAL PROPERTY USE_FOLDERS ON) +# +# Export compile_commands.json file +# +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) ############################################################################ ############################ Dependencies ##################################