We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 323b9d9 commit bf25ddeCopy full SHA for bf25dde
CMakeLists.txt
@@ -169,6 +169,14 @@ else ()
169
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -stdlib=libc++")
170
endif ()
171
172
+# Compile with -Wdocumentation.
173
+check_cxx_compiler_flag("-Werror -Wdocumentation" CXX_SUPPORTS_DOCUMENTATION_FLAG)
174
+if( CXX_SUPPORTS_DOCUMENTATION_FLAG )
175
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wdocumentation" )
176
+endif()
177
+
178
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++ -fno-rtti -fno-exceptions")
179
180
# Compile a swift file into an object file (as a library).
181
#
182
# Usage:
0 commit comments