From fe31d7c3eef1af4608c28c7e41dad3e1cbd91508 Mon Sep 17 00:00:00 2001
From: Florian Uhlig <f.uhlig@gsi.de>
Date: Fri, 20 Dec 2024 16:04:08 +0100
Subject: [PATCH] Fix script generation macro

In the macro GENERATE_CBM_TEST_SCRIPT the Geant4 data variables were not
properly added to the generated shell script. This was not yet seen since all
tests were done with the Geant3 simulation engine. The problem was found after
the KF related tests were moved to  Geant4.
---
 cmake/modules/CbmMacros.cmake | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cmake/modules/CbmMacros.cmake b/cmake/modules/CbmMacros.cmake
index d8653109b3..9791c892cb 100644
--- a/cmake/modules/CbmMacros.cmake
+++ b/cmake/modules/CbmMacros.cmake
@@ -191,6 +191,8 @@ MACRO (GENERATE_CBM_TEST_SCRIPT SCRIPT_FULL_NAME DEST_DIR)
 
   set(my_script_name ${SCRIPT_FULL_NAME})
 
+  Write_Geant4Data_Variables_sh()
+
   configure_file(${PROJECT_SOURCE_DIR}/cmake/scripts/root_macro.sh.in
                  ${DEST_DIR}/${shell_script_name}
                 )
-- 
GitLab