From: Matthias Maier Date: Thu, 4 Feb 2021 18:52:22 +0000 (-0600) Subject: CMake: record the C++ language standard detected during configure X-Git-Tag: v9.3.0-rc1~505^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76e2cf84ca3b25c06ea0e0bff76116f6975c2dba;p=dealii.git CMake: record the C++ language standard detected during configure --- diff --git a/cmake/setup_write_config.cmake b/cmake/setup_write_config.cmake index 2dc45a1c85..1b0626d19d 100644 --- a/cmake/setup_write_config.cmake +++ b/cmake/setup_write_config.cmake @@ -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")