cmake: Create the compile command database by default.
authorAndreas Schneider <asn@cryptomilk.org>
Wed, 9 Apr 2014 08:10:57 +0000 (10:10 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 9 Apr 2014 08:10:57 +0000 (10:10 +0200)
cmake/Modules/DefineCMakeDefaults.cmake

index 72893c3..22eda6f 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)