From: Wolfgang Bangerth Date: Wed, 22 Mar 2023 18:59:44 +0000 (-0600) Subject: Fix a C++20 cmake check. X-Git-Tag: v9.5.0-rc1~418^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df1dc03a6f801d42dc27ce5b5269677efe447c87;p=dealii.git Fix a C++20 cmake check. --- diff --git a/cmake/checks/check_01_cxx_features.cmake b/cmake/checks/check_01_cxx_features.cmake index 49a44cccee..4dc09a5850 100644 --- a/cmake/checks/check_01_cxx_features.cmake +++ b/cmake/checks/check_01_cxx_features.cmake @@ -81,10 +81,13 @@ macro(_test_cxx20_support) # error \"insufficient support for C++20\" #endif - #if !(defined __cpp_type_identity) || (__cpp_lib_type_identity < 201806) - # error \"insufficient support for C++20\" + #if !(defined __cpp_lib_type_identity) + # error \"insufficient support for C++20: __cpp_lib_type_identity not defined\" #endif + #if !(defined __cpp_lib_type_identity) || (__cpp_lib_type_identity < 201806) + # error \"insufficient support for C++20: __cpp_lib_type_identity is too old \" + #endif // Test concepts and requires clauses template