]> https://gitweb.dealii.org/ - dealii.git/commit
CMake: Correctly detect -Wno-... support for gcc 297/head
authorMatthias Maier <tamiko@kyomu.43-1.org>
Thu, 11 Dec 2014 19:49:34 +0000 (20:49 +0100)
committerMatthias Maier <tamiko@kyomu.43-1.org>
Thu, 11 Dec 2014 19:53:28 +0000 (20:53 +0100)
commitf097d787210b19909158d0d6fb577efbd870fdde
tree980f3c086a3e547687a41e3511ce95b050d4f328
parentc3db7b17ea20216054eb535a45225a1926d00eb8
CMake: Correctly detect -Wno-... support for gcc

gcc does not emit a warning if an unknown -Wno-... flag is specified on the
command line, thus the ENABLE_IF_SUPPORTED macro unconditionally enabled
-Wno-... flags for gcc. Unfortunately, gcc _does_ emit a warning for the
unrecognized compiler option if another warning is emitted in the same
compilation unit. This is now fixed by always querying for the non-negated
version, i.e. -Wfoo instead of -Wno-foo.
cmake/macros/macro_enable_if_supported.cmake
doc/news/changes.h

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.