Skip to content

Commit 48a86a4

Browse files
authored
Use the common Key4hepConfig.cmake to set flags and other settings (#507)
* Use the common Key4hepConfig.cmake to set flags and other settings * Do not check for the standard since this is done in Key4hepConfig.cmake --------- Co-authored-by: Juan Miguel Carceller <jmcarcell@users.noreply.github.com>
1 parent 9661cef commit 48a86a4

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,6 @@ set(INSTALL_INCLUDE_DIR include CACHE PATH
5151
set(INSTALL_SHARE_DIR "${CMAKE_INSTALL_PREFIX}/share" CACHE PATH
5252
"Installation directory for shared resources")
5353

54-
55-
#--- Declare C++ Standard -----------------------------------------------------
56-
57-
set(CMAKE_CXX_STANDARD 20 CACHE STRING "")
58-
if(NOT CMAKE_CXX_STANDARD MATCHES "17|20")
59-
message(FATAL_ERROR "Unsupported C++ standard: ${CMAKE_CXX_STANDARD}")
60-
endif()
61-
message (STATUS "C++ standard: ${CMAKE_CXX_STANDARD}")
62-
6354
#--- Dependencies -------------------------------------------------------------
6455

6556
find_package(ROOT REQUIRED COMPONENTS ROOTVecOps ROOTDataFrame TMVA TMVAUtils)
@@ -72,6 +63,7 @@ find_package(FastJet REQUIRED)
7263

7364
find_package( Delphes REQUIRED )
7465

66+
include(cmake/Key4hepConfig.cmake)
7567

7668
if(WITH_ACTS)
7769
find_package( Acts COMPONENTS Core )

0 commit comments

Comments
 (0)