Skip to content

Commit

Permalink
Use the Key4hepConfig flag to set the standard, compiler flags and
Browse files Browse the repository at this point in the history
rpath magic.
  • Loading branch information
jmcarcell committed Sep 8, 2024
1 parent b96db67 commit 0ae576b
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,9 @@ find_package(k4FWCore)
find_package(Gaudi)
#---------------------------------------------------------------

include(GNUInstallDirs)

# Set up C++ Standard
# ``-DCMAKE_CXX_STANDARD=<standard>`` when invoking CMake
set(CMAKE_CXX_STANDARD 20 CACHE STRING "")
include(cmake/Key4hepConfig.cmake)

if(NOT CMAKE_CXX_STANDARD MATCHES "20|23")
message(FATAL_ERROR "Unsupported C++ standard: ${CMAKE_CXX_STANDARD}")
endif()
include(GNUInstallDirs)

include(CTest)

Expand Down

0 comments on commit 0ae576b

Please sign in to comment.