summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2014-04-09 10:10:57 +0200
committerAndreas Schneider <asn@cryptomilk.org>2014-04-09 10:10:57 +0200
commit1704824a0b343a70ca8149a20dad36752cb3d341 (patch)
tree398e3ad10e47037a362b07b517d9e835f8a8bc0d
parent39310988d058ca8171315984188641562b0669b4 (diff)
downloadcmocka-1704824a0b343a70ca8149a20dad36752cb3d341.tar.gz
cmocka-1704824a0b343a70ca8149a20dad36752cb3d341.tar.bz2
cmocka-1704824a0b343a70ca8149a20dad36752cb3d341.zip
cmake: Create the compile command database by default.
-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)