projects
/
libcds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aaf8116
)
Added -Wdocumentation flag for Clang
author
khizmax
<khizmax@gmail.com>
Mon, 16 Jan 2017 09:11:06 +0000
(12:11 +0300)
committer
khizmax
<khizmax@gmail.com>
Mon, 16 Jan 2017 09:11:06 +0000
(12:11 +0300)
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index 0843a2c50990cdb39064bdd1dbece93cece1ec96..40cd904ec7e07700054a0e9ccaa8bbe964d955c0 100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-90,6
+90,10
@@
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang" )
endif()
endif()
+if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" )
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wdocumentation")
+endif()
+
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG")
message("Build type -- ${CMAKE_BUILD_TYPE}")