Created
January 30, 2026 08:57
-
-
Save paulgessinger/ef9e9f1539218af181b928ef0472860f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| From 1c4bc8719e16f68b2dc45a2eb3851d13292bc901 Mon Sep 17 00:00:00 2001 | |
| From: Paul Gessinger <paul.gessinger@cern.ch> | |
| Date: Thu, 29 Jan 2026 17:17:24 +0100 | |
| Subject: [PATCH] Add ACTS find_package intercept | |
| --- | |
| Projects/WorkDir/CMakeLists.txt | 26 ++++++++++++++++++++++++++ | |
| 1 file changed, 26 insertions(+) | |
| diff --git a/Projects/WorkDir/CMakeLists.txt b/Projects/WorkDir/CMakeLists.txt | |
| index bf0f1f57107..8236c20a7eb 100644 | |
| --- a/Projects/WorkDir/CMakeLists.txt | |
| +++ b/Projects/WorkDir/CMakeLists.txt | |
| @@ -60,6 +60,30 @@ unset( _defaultParentProject ) | |
| # we use the QUIET keyword. | |
| find_package( AtlasCMake QUIET ) | |
| +if (ATLAS_ATHENA_ACTS_SOURCE_DIR) | |
| + message(STATUS "Using ACTS from: ${ATLAS_ATHENA_ACTS_SOURCE_DIR}") | |
| + | |
| + if (NOT IS_DIRECTORY "${ATLAS_ATHENA_ACTS_SOURCE_DIR}") | |
| + message(FATAL_ERROR "The path set in ATLAS_ATHENA_ACTS_SOURCE_DIR does not exist or is not a directory!") | |
| + endif() | |
| + | |
| + include(FetchContent) | |
| + set(ACTS_USE_SYSTEM_NLOHMANN_JSON ON CACHE BOOL "Use system json") | |
| + set(ACTS_BUILD_PLUGIN_JSON ON CACHE BOOL "Build json plugin") | |
| + set(ACTS_BUILD_PLUGIN_GEOMODEL ON CACHE BOOL "Build geomodel plugin") | |
| + set(ACTS_BUILD_PLUGIN_ROOT ON CACHE BOOL "Build root plugin") | |
| + set(ACTS_BUILD_FATRAS ON CACHE BOOL "Build ACTS FATRAS") | |
| + | |
| + set(FETCHCONTENT_SOURCE_DIR_ACTS "${ATLAS_ATHENA_ACTS_SOURCE_DIR}" CACHE PATH "") | |
| + | |
| + FetchContent_Declare(Acts | |
| + GIT_REPOSITORY git@github.com:acts-project/acts.git | |
| + GIT_TAG v44.4.0 | |
| + SYSTEM | |
| + OVERRIDE_FIND_PACKAGE | |
| + ) | |
| +endif() | |
| + | |
| # Find the project that we depend on: | |
| find_package( ${ATLAS_PROJECT} REQUIRED ) | |
| @@ -182,3 +206,5 @@ message( STATUS " In order to test your updates, please don't forget | |
| message( STATUS " set up the environment with e.g.:" ) | |
| message( STATUS " ---> source ${ATLAS_PLATFORM}/setup.sh" ) | |
| message( STATUS "") | |
| + | |
| + | |
| -- | |
| 2.47.1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment