IF(DEAL_II_WITH_CUDA)
FIND_PACKAGE(CUDA)
- SET(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} -std=c++11 -arch=sm_35 -Xcompiler ${OpenMP_CXX_FLAGS})
+ SET(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} -std=c++14 -arch=sm_35 -Xcompiler ${OpenMP_CXX_FLAGS})
ENDIF()
FIND_PACKAGE(Perl REQUIRED)
# ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-fpic")
# ENABLE_IF_LINKS(DEAL_II_LINKER_FLAGS "-Wl,--as-needed")
#
-# Checks for compiler features (such as C++11 support) and compiler
+# Checks for compiler features (such as C++14 support) and compiler
# specific bugs that
# - usually set up further configuration (such as preprocessor
# definitions)
IF( CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND
CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.9" )
MESSAGE(WARNING "\n"
- "deal.II requires support for features of C++11 that are not present in\n"
+ "deal.II requires support for features of C++14 that are not present in\n"
"versions of GCC prior to 4.9."
)
ENDIF()
IF( CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND
CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.0" )
MESSAGE(WARNING "\n"
- "deal.II requires support for features of C++11 that are not present in\n"
+ "deal.II requires support for features of C++14 that are not present in\n"
"versions of Clang prior to 4.0."
)
ENDIF()
guarded with DEAL_II_ALLOW_PLATFORM_INTROSPECTION
./cmake/checks/check_01_cxx_features.cmake
- - Check for supported C++ language features such as sufficient C++11
+ - Check for supported C++ language features such as sufficient C++14
support
./cmake/checks/check_02_compiler_features.cmake
<li>
For internal and external use, for setting necessary compiler flags,
- e.g. <code>-std=c++11</code> (if available):
+ e.g. <code>-std=c++20</code> (if available):
<ul>
<li> <code>DEAL_II_CXX_FLAGS</code>
<li> <code>DEAL_II_CXX_FLAGS_DEBUG</code>