From ac3f4df0224f32319c37d1e8e380ed8730c7501b Mon Sep 17 00:00:00 2001
From: Louis Moureaux <louis.moureaux@cern.ch>
Date: Wed, 12 Jun 2024 22:03:17 +0200
Subject: [PATCH] Add options for the Core ref to install

---
 CMakeLists.txt | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index a404b3f..ebd803c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -64,9 +64,14 @@ ExternalProject_Add(tables
     BUILD_COMMAND       ""
     INSTALL_COMMAND     ""
 )
+
+set(CORE_GIT_REPOSITORY https://gitlab.cern.ch/cms-analysis/general/DasAnalysisSystem/Core.git
+    CACHE STRING "Remote to use for Core")
+set(CORE_GIT_TAG migration
+    CACHE STRING "Core tag, branch, or commit to use")
 ExternalProject_Add(Core
-    GIT_REPOSITORY      https://gitlab.cern.ch/cms-analysis/general/DasAnalysisSystem/Core.git
-    GIT_TAG             migration
+    GIT_REPOSITORY      "${CORE_GIT_REPOSITORY}"
+    GIT_TAG             "${CORE_GIT_TAG}"
     SOURCE_DIR          "${CMAKE_SOURCE_DIR}/Core"
     CMAKE_ARGS          -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR> -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
     DEPENDS             TUnfold Darwin
-- 
GitLab