From df1dc03a6f801d42dc27ce5b5269677efe447c87 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 22 Mar 2023 12:59:44 -0600 Subject: [PATCH] Fix a C++20 cmake check. --- cmake/checks/check_01_cxx_features.cmake | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 -- 2.39.5