diff options
author | Sadie Powell <sadie@witchery.services> | 2022-01-03 23:08:23 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2022-01-04 00:39:05 +0000 |
commit | c1f6a79c72c29f92ba053942d25d351623f57551 (patch) | |
tree | 84d62ffd7eea4ad706b73a72ea1acd4c1b2345c9 | |
parent | eb81f22a5b1df18c9844893c55f57762148f2bd0 (diff) |
Export a compilation database for debug builds.
-rw-r--r-- | CMakeLists.txt | 1 |
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() |