git.samba.org
/
slow
/
socket_wrapper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a6f853
)
cmake: Create the compile command database by default.
author
Andreas Schneider
<asn@samba.org>
Mon, 7 Apr 2014 10:15:51 +0000
(12:15 +0200)
committer
Andreas Schneider
<asn@samba.org>
Mon, 7 Apr 2014 10:16:04 +0000
(12:16 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
cmake/Modules/DefineCMakeDefaults.cmake
patch
|
blob
|
history
diff --git
a/cmake/Modules/DefineCMakeDefaults.cmake
b/cmake/Modules/DefineCMakeDefaults.cmake
index 72893c3c9befec929f13d56cd362bc2ac256cfb6..22eda6fae131921ec267d30b0d97b198e3eb49d5 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)