Skip to content

Commit

Permalink
Use the Key4hepConfig flag to set the standard, compiler flags
Browse files Browse the repository at this point in the history
and rpath magic.
  • Loading branch information
jmcarcell committed Sep 9, 2024
1 parent fd43134 commit fdb1a3c
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,9 @@ find_package(Gaudi REQUIRED)
find_package(DD4hep REQUIRED)
find_package(k4SimGeant4 REQUIRED)

include(GNUInstallDirs)

# Set up C++ Standard
# ``-DCMAKE_CXX_STANDARD=<standard>`` when invoking CMake
set(CMAKE_CXX_STANDARD 17 CACHE STRING "")

if(NOT CMAKE_CXX_STANDARD MATCHES "14|17|20")
message(FATAL_ERROR "Unsupported C++ standard: ${CMAKE_CXX_STANDARD}")
endif()
include(cmake/Key4hepConfig.cmake)

include(GNUInstallDirs)
include(CTest)

add_subdirectory(k4Reco)
Expand Down

0 comments on commit fdb1a3c

Please sign in to comment.