From 76e2cf84ca3b25c06ea0e0bff76116f6975c2dba Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Thu, 4 Feb 2021 12:52:22 -0600 Subject: [PATCH] CMake: record the C++ language standard detected during configure --- cmake/setup_write_config.cmake | 7 +++++++ 1 file changed, 7 insertions(+) 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") -- 2.39.5