cmake: Create the compile command database by default.
authorAndreas Schneider <asn@samba.org>
Mon, 7 Apr 2014 10:17:01 +0000 (12:17 +0200)
committerAndreas Schneider <asn@samba.org>
Mon, 7 Apr 2014 10:38:54 +0000 (12:38 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
cmake/Modules/DefineCMakeDefaults.cmake

index 72893c3c9befec929f13d56cd362bc2ac256cfb6..22eda6fae131921ec267d30b0d97b198e3eb49d5 100644 (file)
@@ -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)