]> https://gitweb.dealii.org/ - dealii.git/commit
CMake: enable -pedantic for language feature check
authorMatthias Maier <tamiko@43-1.org>
Thu, 30 Mar 2023 00:08:53 +0000 (19:08 -0500)
committerMatthias Maier <tamiko@43-1.org>
Thu, 30 Mar 2023 00:22:17 +0000 (19:22 -0500)
commit772cef40fc798fdb531af637257b8da9838f27c9
tree9158a9fedbee8f9f43bdc994464cc0defacf7b0e
parentada9d9914ecb7c42dc83ad6d338c1fe2a249d03c
CMake: enable -pedantic for language feature check

This is a funny one: gcc and clang silently accept the [[deprecated]]
and [[fallthrough]] attributes which are introduced in the C++17
standard - even when the compiler is configured only with C++14 support.

BUT, clang will issue a warning that the attributes are not supported if
compiled with -pedantic. Thus, we have to check for support of the
attributes with -pedantic set.
cmake/checks/check_01_cxx_features.cmake

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.