ENDIF()
STRING(STRIP "${_flag}" _flag_stripped)
+ SET(_flag_stripped_orig "${_flag_stripped}")
+
+ #
+ # Gcc does not emit a warning if testing -Wno-... flags which leads to
+ # false positive detection. Unfortunately it later warns that an unknown
+ # warning option is used if another warning is emited in the same
+ # compilation unit.
+ # Therefore we invert the test for -Wno-... flags:
+ #
+ IF(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
+ STRING(REPLACE "-Wno-" "-W" _flag_stripped "${_flag_stripped}")
+ ENDIF()
+
IF(NOT "${_flag_stripped}" STREQUAL "")
STRING(REGEX REPLACE "^-" "" _flag_name "${_flag_stripped}")
STRING(REPLACE "," "" _flag_name "${_flag_name}")
DEAL_II_HAVE_FLAG_${_flag_name}
)
IF(DEAL_II_HAVE_FLAG_${_flag_name})
- SET(${_variable} "${${_variable}} ${_flag_stripped}")
+ SET(${_variable} "${${_variable}} ${_flag_stripped_orig}")
STRING(STRIP "${${_variable}}" ${_variable})
ENDIF()
ENDIF()
<h3>Specific improvements</h3>
<ol>
+ <li>Fixed: CMake now correctly detects -Wno-... support for gcc.
+ <br>
+ (Matthias Maier, 2014/12/11)
+ </li>
+
<li> New: The FE_Q and FE_Q_Hierarchical classes now include pictures
of their 2d shape functions in the class documentation.
<br>