diff --git a/CMakeLists.txt b/CMakeLists.txt index 31ddc44..bae607a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,9 +39,9 @@ include(GNUInstallDirs) # Set up C++ Standard # ``-DCMAKE_CXX_STANDARD=`` when invoking CMake -set(CMAKE_CXX_STANDARD 17 CACHE STRING "") +set(CMAKE_CXX_STANDARD 20 CACHE STRING "") -if(NOT CMAKE_CXX_STANDARD MATCHES "14|17|20") +if(NOT CMAKE_CXX_STANDARD MATCHES "20|23") message(FATAL_ERROR "Unsupported C++ standard: ${CMAKE_CXX_STANDARD}") endif() diff --git a/k4ProjectTemplate/CMakeLists.txt b/k4ProjectTemplate/CMakeLists.txt index f9bd5c6..c91a135 100644 --- a/k4ProjectTemplate/CMakeLists.txt +++ b/k4ProjectTemplate/CMakeLists.txt @@ -34,17 +34,10 @@ install(TARGETS k4ProjectTemplatePlugins include(CTest) -#--- The genConf directory has been renamed to genConfDir in Gaudi 35r1 -#--- See https://gitlab.cern.ch/gaudi/Gaudi/-/merge_requests/1158 -set(GAUDI_GENCONF_DIR "genConfDir") -if (${Gaudi_VERSION} VERSION_LESS 35.1) - set(GAUDI_GENCONF_DIR "genConf") -endif() - function(set_test_env _testname) set_property(TEST ${_testname} APPEND PROPERTY ENVIRONMENT LD_LIBRARY_PATH=${CMAKE_BINARY_DIR}:$:$:$:$:$:$ENV{LD_LIBRARY_PATH} - PYTHONPATH=${CMAKE_BINARY_DIR}/${CMAKE_PROJECT_NAME}/${GAUDI_GENCONF_DIR}:$/../python:$ENV{PYTHONPATH} + PYTHONPATH=${CMAKE_BINARY_DIR}/${CMAKE_PROJECT_NAME}/genConfDir:$/../python:$ENV{PYTHONPATH} PATH=$/../bin:$ENV{PATH} K4PROJECTTEMPLATE=${CMAKE_CURRENT_LIST_DIR}/ )