From: Samuel Just Date: Wed, 15 Jan 2025 20:41:46 +0000 (-0800) Subject: src/CMakeLists.txt: require clang16 X-Git-Tag: v20.0.0~60^2~6 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=c296b7a81205c5c459ec6555d523fab729dbbe42;p=ceph.git src/CMakeLists.txt: require clang16 Signed-off-by: Matan Breizman Signed-off-by: Samuel Just --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 9cbe350b388a3..a32600d4e06f4 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -151,8 +151,8 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL GNU) endif() endif() elseif(CMAKE_CXX_COMPILER_ID STREQUAL Clang) - if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 12) # require >= clang-12 - message(FATAL_ERROR "C++20 support requires a minimum Clang version of 12.") + if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 16) + message(FATAL_ERROR "C++20 support requires a minimum Clang version of 16.") endif() string(APPEND CMAKE_EXE_LINKER_FLAGS " ${CMAKE_EXE_EXPORTS_C_FLAG}") string(APPEND CMAKE_LINKER_FLAGS " -rdynamic -export-dynamic ${CMAKE_EXE_EXPORTS_C_FLAG}")