]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: record the C++ language standard detected during configure 11683/head
authorMatthias Maier <tamiko@43-1.org>
Thu, 4 Feb 2021 18:52:22 +0000 (12:52 -0600)
committerMatthias Maier <tamiko@43-1.org>
Thu, 4 Feb 2021 18:53:35 +0000 (12:53 -0600)
cmake/setup_write_config.cmake

index 2dc45a1c850cf1fd7328e0ccc9dd91f7be7c2e20..1b0626d19d3e7d04bcac91f26a36486dc3523aa3 100644 (file)
@@ -86,6 +86,13 @@ _both(
 #                                ${CMAKE_CXX_COMPILER}
 "
   )
+IF(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()
 
 IF(CMAKE_C_COMPILER_WORKS)
   _detailed("#        CMAKE_C_COMPILER:       ${CMAKE_C_COMPILER}\n")

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.