]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Update some more documentation to refer to our C++17 requirement. 16246/head
authorDavid Wells <drwells@email.unc.edu>
Sun, 5 Nov 2023 22:59:32 +0000 (17:59 -0500)
committerDavid Wells <drwells@email.unc.edu>
Sun, 5 Nov 2023 22:59:32 +0000 (17:59 -0500)
cmake/setup_compiler_flags_gnu.cmake
cmake/setup_write_config.cmake
doc/developers/cmake-internals.html
doc/users/cmake_dealii.html

index b3424f3f274f15f7bf8753252f1715f077b02bb7..ea945ce9bf0095f44d2f4d69ca8b99f2138df8a1 100644 (file)
@@ -96,14 +96,6 @@ enable_if_supported(DEAL_II_WARNING_FLAGS "-Wno-literal-suffix")
 #
 enable_if_supported(DEAL_II_WARNING_FLAGS "-Wno-psabi")
 
-#
-# Disable warnings regarding improper direct memory access
-# if compiling without C++17 support
-#
-if(NOT DEAL_II_HAVE_CXX17)
-  enable_if_supported(DEAL_II_WARNING_FLAGS "-Wno-class-memaccess")
-endif()
-
 if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
   # Enable warnings for conversion from real types to integer types.
   # The warning is too noisy in gcc and therefore only enabled for clang.
index 43418666a5c004509e6350fa4893f7156e0fb2b4..57faec68097ead29cb5ac707cc754e66731c0d09 100644 (file)
@@ -82,8 +82,6 @@ elseif(DEAL_II_HAVE_CXX20)
   _both("#        C++ language standard:  C++20\n")
 elseif(DEAL_II_HAVE_CXX17)
   _both("#        C++ language standard:  C++17\n")
-elseif(DEAL_II_HAVE_CXX14)
-  _both("#        C++ language standard:  C++14\n")
 endif()
 
 _both("#        Vectorization level:    ${DEAL_II_VECTORIZATION_WIDTH_IN_BITS} bit")
index d2a69fe745e6652cee25e2e53740f2ee6f362cd3..1a931482efdf6e8f04dc017cac3c713934a12625 100644 (file)
@@ -190,7 +190,7 @@ set_target_properties(${DEAL_II_TARGET_NAME}_${build_lowercase}
 #     enable_if_supported(DEAL_II_CXX_FLAGS "-march=native")
 #   ENDIF()
 #
-# Checks for compiler features (such as C++14 support) and compiler
+# Checks for compiler features (such as C++17 support) and compiler
 # specific bugs that
 #   - usually set up further configuration (such as preprocessor
 #     definitions)
@@ -223,7 +223,7 @@ set_target_properties(${DEAL_II_TARGET_NAME}_${build_lowercase}
     guarded with DEAL_II_ALLOW_PLATFORM_INTROSPECTION
 
 ./cmake/checks/check_01_cxx_features.cmake
-  - Check for supported C++ language features such as sufficient C++14
+  - Check for supported C++ language features such as sufficient C++17
     support
 
 ./cmake/checks/check_02_compiler_features.cmake
index f9e80808d777ba87280f4a990a8e05dcd00beab6..c16240607b6e458acd6ec7f78d9b98d9e9b724de 100644 (file)
@@ -418,12 +418,11 @@ library        - builds and installs the 'library' component
     </p>
 
     <p>
-      The library will be compiled with the default C++ standard enabled by
-      the compiler. This is (as of May 2020) C++14 for all compilers. If
-      you want to override this behavior, please set the C++ standard
-      directly for example by configuring with
-      <code>-DDEAL_II_CXX_FLAGS="-std=c++17"</code>, or by setting the
-      environment variable <code>CXXFLAGS="-std=c++17"</code>.
+      deal.II (as of version 9.6) requires a compiler which supports the C++17
+      language standard. If you want to override this behavior, please set the
+      C++ standard directly for example by configuring with
+      <code>-DDEAL_II_CXX_FLAGS="-std=c++23"</code>, or by setting the
+      environment variable <code>CXXFLAGS="-std=c++23"</code>.
 
       Similarly, for enabling SIMD vectorization support, you have to set
       an appropriate target architecture via <code>-march=...</code>, for

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.