From 715ede810f8734841a9fd754777b61593ab80dbc Mon Sep 17 00:00:00 2001 From: Kris Thielemans Date: Sat, 17 Feb 2024 15:52:59 +0000 Subject: [PATCH] [CMake] require ROOT 6.28.0 (needed for C++-17) --- CMakeLists.txt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7343db929..47275ae2d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -118,18 +118,12 @@ if(NOT DISABLE_LLN_MATRIX) endif() if(NOT DISABLE_CERN_ROOT) - find_package(CERN_ROOT) + find_package(CERN_ROOT 6.28.00) # required for C++17 if (CERN_ROOT_FOUND) message(STATUS "ROOT Version: ${CERN_ROOT_VERSION}") if (${CERN_ROOT_VERSION} VERSION_GREATER 6.29.99) message(STATUS "ROOT Version is >= 6.30. Setting the minimum CXX version to 20.") UseCXX(20) - elseif (${CERN_ROOT_VERSION} VERSION_GREATER 6.27.99) - message(STATUS "ROOT Version is >= 6.28. Setting the minimum CXX version to 17.") - UseCXX(17) - elseif (${CERN_ROOT_VERSION} VERSION_GREATER 6.23.99) - message(STATUS "ROOT Version is >= 6.24. Setting the minimum CXX version to 14.") - UseCXX(14) endif() endif() endif()