From 870f6082a5ac1055735cb262cffeffdff0248bf8 Mon Sep 17 00:00:00 2001 From: Nicolas Morales Date: Fri, 14 Feb 2025 09:07:58 +0100 Subject: [PATCH] cmake: remove logic for trying to enable `-fconcepts` as the `-fconcepts-ts` branch was broken and the flag is enabled by default in C++20 mode --- CMakeLists.txt | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ddff1a5a..e42e798e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -81,27 +81,6 @@ endif() ################################################################################ -if(MDSPAN_ENABLE_CONCEPTS) - if(CMAKE_CXX_STANDARD GREATER_EQUAL 20) - include(CheckCXXCompilerFlag) - check_cxx_compiler_flag("-fconcepts" COMPILER_SUPPORTS_FCONCEPTS) - if(COMPILER_SUPPORTS_FCONCEPTS) - message(STATUS "Using \"-fconcepts\" to enable concepts support") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fconcepts") - else() - check_cxx_compiler_flag("-fconcepts-ts" COMPILER_SUPPORTS_FCONCEPTS_TS) - if(COMPILER_SUPPORTS_FCONCEPTS) - message(STATUS "Using \"-fconcepts-ts\" to enable concepts support") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fconcepts-ts") - endif() - endif() - # Otherwise, it's possible that the compiler supports concepts without flags, - # but if it doesn't, they just won't be used, which is fine - endif() -endif() - -################################################################################ - if(MDSPAN_ENABLE_CUDA) include(CheckLanguage) check_language(CUDA)