summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2022-01-03 23:08:23 +0000
committerSadie Powell <sadie@witchery.services>2022-01-04 00:39:05 +0000
commitc1f6a79c72c29f92ba053942d25d351623f57551 (patch)
tree84d62ffd7eea4ad706b73a72ea1acd4c1b2345c9 /CMakeLists.txt
parenteb81f22a5b1df18c9844893c55f57762148f2bd0 (diff)
Export a compilation database for debug builds.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c2133e73b..a1858c704 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -253,6 +253,7 @@ endif()
# Set the DEBUG_BUILD for sysconf.h
if(CMAKE_BUILD_TYPE STREQUAL "DEBUG" OR CMAKE_BUILD_TYPE STREQUAL "RELWITHDEBINFO")
+ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(DEBUG_BUILD TRUE)
endif()