Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 14, 2024
1 parent b5542e5 commit 3689712
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions cmake/thisREST.cmake
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
# Write thisREST.[c]sh to INSTALL directory

##### Checking if we are using CVMFS LCG GCC11 environment
# Checking if we are using CVMFS LCG GCC11 environment
set(lcg_found FALSE)

# Check if the CMAKE_COMMAND contains both "cvmfs", "lcg" and "x86_64-el9-gcc11"
string(FIND "${CMAKE_COMMAND}" "cvmfs" cvmfs_pos)
string(FIND "${CMAKE_COMMAND}" "lcg" lcg_pos)
string(FIND "${CMAKE_COMMAND}" "x86_64-el9-gcc11" gcc_pos)

if (lcg_pos GREATER -1 AND cvmfs_pos GREATER -1 AND gcc_pos GREATER -1)
if (lcg_pos GREATER -1
AND cvmfs_pos GREATER -1
AND gcc_pos GREATER -1)
set(lcg_found TRUE)
endif()
endif ()

# We identify the thisroot.sh script for the corresponding ROOT version
execute_process(
Expand Down Expand Up @@ -40,10 +42,11 @@ 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()
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)
Expand Down

0 comments on commit 3689712

Please sign in to comment.