]> https://gitweb.dealii.org/ - dealii.git/commit
Fix the check for compilers defaulting to C++11. 4201/head
authorDavid Wells <wellsd2@rpi.edu>
Thu, 6 Apr 2017 14:36:13 +0000 (10:36 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Thu, 6 Apr 2017 15:44:04 +0000 (11:44 -0400)
commit482e2f34851323394a26448ad8a5935f2e45a8e4
treec668a3cc9d4f860e91723c5bd48a21358f73e2e2
parenta0aa983a0a32944d5b59a34eec3887c0aa9529a0
Fix the check for compilers defaulting to C++11.

Some compilers (notably clang on macOS) enable C++11 features as
extensions even when __cplusplus == 199711 (i.e., compilation in C++98
mode). Mixing language versions in this way confuses some system
headers (i..e., override versus throw()), so only treat the default
compiler setting as C++11 if it sets the right value for __cplusplus.
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.