aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2014-04-07 12:15:51 +0200
committerAndreas Schneider <asn@samba.org>2014-04-07 12:16:04 +0200
commitc97864a3da2f2554d02e7f1c312af4480f1a7027 (patch)
treee50e92eb574a36ae26ee1235693fc9bce893489b /cmake
parent3a6f8539bb6f31878bf7547bf71df63338771adb (diff)
downloadsocket_wrapper-c97864a3da2f2554d02e7f1c312af4480f1a7027.tar.gz
socket_wrapper-c97864a3da2f2554d02e7f1c312af4480f1a7027.tar.xz
socket_wrapper-c97864a3da2f2554d02e7f1c312af4480f1a7027.zip
cmake: Create the compile command database by default.
Signed-off-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/DefineCMakeDefaults.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/Modules/DefineCMakeDefaults.cmake b/cmake/Modules/DefineCMakeDefaults.cmake
index 72893c3..22eda6f 100644
--- a/cmake/Modules/DefineCMakeDefaults.cmake
+++ b/cmake/Modules/DefineCMakeDefaults.cmake
@@ -25,3 +25,6 @@ if (NOT CMAKE_BUILD_TYPE)
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."
)
endif (NOT CMAKE_BUILD_TYPE)
+
+# Create the compile command database for clang by default
+set(CMAKE_EXPORT_COMPILE_COMMANDS ON)