From f261932e6f0ea87dd68fbc9c403130d34489495d Mon Sep 17 00:00:00 2001 From: Javier Galan Date: Sun, 14 Jul 2024 10:21:33 +0200 Subject: [PATCH] Ordering --- cmake/thisREST.cmake | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cmake/thisREST.cmake b/cmake/thisREST.cmake index 9e2ddc188..86b225c4c 100644 --- a/cmake/thisREST.cmake +++ b/cmake/thisREST.cmake @@ -14,6 +14,13 @@ if (lcg_pos GREATER -1 set(lcg_found TRUE) endif () +set(loadLCG "") +if (lcg_found) + set(loadLCG + "\# REST_LCG was enabled. We load LCG_104 environment.\nsource /cvmfs/sft.cern.ch/lcg/views/LCG_104/x86_64-el9-gcc11-opt/setup.sh\n\n" + ) +endif () + # We identify the thisroot.sh script for the corresponding ROOT version execute_process( COMMAND root-config --prefix @@ -41,13 +48,6 @@ if (${REST_G4} MATCHES "ON") ) endif () -set(loadLCG "") -if (lcg_found) - set(loadLCG - "\# REST_LCG was enabled. We load LCG_104 environment.\nsource /cvmfs/sft.cern.ch/lcg/views/LCG_104/x86_64-el9-gcc11-opt/setup.sh\n\n" - ) -endif () - set(loadMPFR "") if (DEFINED MPFR_PATH) set(loadMPFR "export LD_LIBRARY_PATH=${MPFR_PATH}/lib:\$LD_LIBRARY_PATH")