Added -Wdocumentation flag for Clang
authorkhizmax <khizmax@gmail.com>
Mon, 16 Jan 2017 09:11:06 +0000 (12:11 +0300)
committerkhizmax <khizmax@gmail.com>
Mon, 16 Jan 2017 09:11:06 +0000 (12:11 +0300)
CMakeLists.txt

index 0843a2c..40cd904 100644 (file)
@@ -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}")