projects
/
platform
/
upstream
/
cmocka.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3931098
)
cmake: Create the compile command database by default.
author
Andreas Schneider
<asn@cryptomilk.org>
Wed, 9 Apr 2014 08:10:57 +0000
(10:10 +0200)
committer
Andreas Schneider
<asn@cryptomilk.org>
Wed, 9 Apr 2014 08:10:57 +0000
(10:10 +0200)
cmake/Modules/DefineCMakeDefaults.cmake
patch
|
blob
|
history
diff --git
a/cmake/Modules/DefineCMakeDefaults.cmake
b/cmake/Modules/DefineCMakeDefaults.cmake
index
72893c3
..
22eda6f
100644
(file)
--- 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)