From 18173fbdf7c341c3baaed2ec9e1befe1d66b2a1c Mon Sep 17 00:00:00 2001
From: Kubat <mael.martin31@gmail.com>
Date: Wed, 1 Mar 2023 19:45:37 +0100
Subject: [PATCH] MISC: Export the compiles.json file by default

---
 CMakeLists.txt | 1 +
 README.md      | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 54974088..66100fb4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,6 +11,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/utils/cmake/")
 set(CMAKE_POSITION_INDEPENDENT_CODE ON)
 set(THREADS_PREFER_PTHREAD_FLAG     ON)
 set(CMAKE_COLOR_MAKEFILE            ON)
+set(CMAKE_EXPORT_COMPILE_COMMANDS   ON)
 
 include(TestBigEndian)   # Needed for endianness tests
 include(GNUInstallDirs)  # Needed for installation things
diff --git a/README.md b/README.md
index 78830b10..c54cf378 100644
--- a/README.md
+++ b/README.md
@@ -67,7 +67,6 @@ The manual way of installing and setting up lektor:
 cmake -Bbuild \
     -DCMAKE_C_COMPILER=clang           \ # Choose the compiler
     -DCMAKE_CXX_COMPILER=clang++       \ # Choose the compiler
-    -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \ # For clangd/ccls
     -DCMAKE_BUILD_TYPE=Debug             # The debug stuff
 ```
 
-- 
GitLab