From: khizmax Date: Mon, 16 Jan 2017 09:11:06 +0000 (+0300) Subject: Added -Wdocumentation flag for Clang X-Git-Tag: v2.3.0~211 X-Git-Url: http://plrg.eecs.uci.edu/git/?p=libcds.git;a=commitdiff_plain;h=4a833c7d8fe693636f4453de723151888ac86d7e Added -Wdocumentation flag for Clang --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 0843a2c5..40cd904e 100644 --- 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}")