summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e2ec83a..8a18c25 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -50,6 +50,10 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
set(${CMAKE_INTERPROCEDURAL_OPTIMIZATION} TRUE)
endif()
+if(DAW_BUILD_DEBUG AND NOT_SUBPROJECT)
+ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
+endif()
+
if(DAW_BUILD_UBSAN AND DAW_BUILD_ASAN)
message(FATAL_ERROR "You cannot build both asan and ubsan")
endif()