]> https://gitweb.dealii.org/ - dealii.git/commit
CMake: Bugfix: set C++14 flag in CXX_FLAGS_SAVED 11331/head
authorMatthias Maier <tamiko@43-1.org>
Sun, 6 Dec 2020 19:25:34 +0000 (13:25 -0600)
committerMatthias Maier <tamiko@43-1.org>
Sun, 6 Dec 2020 20:01:37 +0000 (14:01 -0600)
commit8f9ac10efa7a5dd617ea718a4ff305e76f3c3dce
tree0b74e51f1c1f8eac0b7bf755e98c5b227963c8bd
parent16b398077eaa4e22fe7bc7f01618fe7715c72a33
CMake: Bugfix: set C++14 flag in CXX_FLAGS_SAVED

When configuring we make an attempt to set the flag -std=c++14 if we
fail to detect C++14 support. Unfortunately, we accidentally set this
flag in DEAL_II_CXX_FLAGS instead of DEAL_II_CXX_FLAGS_SAVED.

This implied that RESET_CMAKE_REQUIRED() did not include the -std=c++14
flag and consequently compile tests that relied on C++14 support failed.
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.