PUSH_CMAKE_REQUIRED("${DEAL_II_CXX_VERSION_FLAG}")
PUSH_CMAKE_REQUIRED("-Werror")
+ UNSET_IF_CHANGED(CHECK_CXX_FEATURES_FLAGS_CXX17_SAVED
+ "${CMAKE_REQUIRED_FLAGS}${DEAL_II_CXX_VERSION_FLAG}"
+ DEAL_II_HAVE_CXX17_ATTRIBUTES
+ )
+
#
# Test that the c++17 attributes are supported.
#
_check_version("14" "1y")
IF(NOT "${DEAL_II_CXX_VERSION_FLAG}" STREQUAL "")
+
+ UNSET_IF_CHANGED(CHECK_CXX_FEATURES_FLAGS_CXX14_SAVED
+ "${CMAKE_REQUIRED_FLAGS}${DEAL_II_CXX_VERSION_FLAG}"
+ DEAL_II_HAVE_CXX14_CLANGAUTODEBUG_BUG_OK
+ DEAL_II_HAVE_CXX14_CONSTEXPR_STDMAXMIN
+ DEAL_II_HAVE_CXX14_MAKE_UNIQUE
+ )
+
# Set CMAKE_REQUIRED_FLAGS for the unit tests
PUSH_CMAKE_REQUIRED("${DEAL_II_CXX_VERSION_FLAG}")
_check_version("11" "0x")
ENDIF()
+UNSET_IF_CHANGED(CHECK_CXX_FEATURES_FLAGS_CXX11_SAVED
+ "${CMAKE_REQUIRED_FLAGS}${DEAL_II_CXX_VERSION_FLAG}"
+ DEAL_II_HAVE_CXX11_FEATURES
+ DEAL_II_HAVE_CXX11_FUNCTIONAL_LLVMBUG20084_OK
+ DEAL_II_HAVE_CXX11_ICCLIBSTDCPP47CXX11BUG_OK
+ DEAL_II_HAVE_CXX11_ICCNUMERICLIMITSBUG_OK
+ DEAL_II_HAVE_CXX11_MACOSXC99BUG_OK
+ )
+
PUSH_CMAKE_REQUIRED("${DEAL_II_CXX_VERSION_FLAG}")
CHECK_CXX_SOURCE_COMPILES(
"