Skip to content
Snippets Groups Projects
Commit 87372303 authored by Felix Weiglhofer's avatar Felix Weiglhofer
Browse files

Add cmake option to switch parameters and geometry to mcbm fork.

parent 0c78dccb
No related branches found
No related tags found
1 merge request!1826Add cmake option to switch parameters and geometry to mcbm fork.
Pipeline #29481 passed
......@@ -6,6 +6,11 @@
# it off execept for the checker.
Option(DOWNLOAD_EXTERNALS "Download the code from the external repositories." ON)
Option(CBM_MCBM_PARS "Download mCBM forks for geometry and parameters" OFF)
if (CBM_MCBM_PARS)
message(WARNING "MCBM PARS ENABLED: Using mcbm forks of parameters and geometry.")
endif()
if(DOWNLOAD_EXTERNALS)
Include(InstallFlesnet.cmake)
Set(FLES_IPC_INCLUDE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/flesnet/lib/fles_ipc PARENT_SCOPE)
......
set(GEOMETRY_VERSION 4d9bfb87b3b8bf0adc298fa424976f8fbe9827db)
set(GEOMETRY_SRC_URL "https://git.cbm.gsi.de/CbmSoft/cbmroot_geometry.git")
if (CBM_MCBM_PARS)
# Override defaults to use mcbm fork instead
set(GEOMETRY_VERSION mcbm24_master)
set(GEOMETRY_SRC_URL https://git.cbm.gsi.de/mcbm/cbmroot_geometry.git)
endif()
download_project_if_needed(PROJECT Geometry_source
GIT_REPOSITORY ${GEOMETRY_SRC_URL}
GIT_TAG ${GEOMETRY_VERSION}
......
......@@ -2,6 +2,12 @@ set(PARAMETER_VERSION eef953885621eda9395f9c6e6e089bc3cd160c5e) # 2024-05-11
set(PARAMETER_SRC_URL "https://git.cbm.gsi.de/CbmSoft/cbmroot_parameter.git")
if (CBM_MCBM_PARS)
# Override defaults to use mcbm fork instead
set(PARAMETER_VERSION mcbm24_master)
set(PARAMETER_SRC_URL "https://git.cbm.gsi.de/mcbm/cbmroot_parameter.git")
endif()
download_project_if_needed(PROJECT Parameter_source
GIT_REPOSITORY ${PARAMETER_SRC_URL}
GIT_TAG ${PARAMETER_VERSION}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment