Skip to content

Commit

Permalink
Add new env variable that is by G4.10.5
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadAlTurany committed Jun 18, 2019
1 parent 550aef2 commit 2f2391b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
20 changes: 18 additions & 2 deletions cmake/modules_old/FindGEANT4DATA.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
################################################################################
# Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH #
# #
# This software is distributed under the terms of the #
# GNU Lesser General Public Licence (LGPL) version 3, #
# This software is distributed under the terms of the #
# GNU Lesser General Public Licence (LGPL) version 3, #
# copied verbatim in the file "LICENSE" #
################################################################################
# - Try to find GEANT4 data files
Expand Down Expand Up @@ -84,6 +84,22 @@ Else (G4NEUTRONXSDATA)
Message(STATUS "NOT Found G4NEUTRONXS data")
EndIf (G4NEUTRONXSDATA)


FIND_PATH(G4PARTICLEXSDATA NAMES He3 PATHS
$ENV{G4PARTICLEXSDATA}
${GEANT4_DATA}/G4PARTICLEXS
NO_DEFAULT_PATH
)
#EndIf()

If (G4PARTICLEXSDATA)
Message(STATUS "Found G4PARTICLEXSDATA data")
Else (G4PARTICLEXSDATA)
Message(STATUS "NOT Found G4PARTICLEXSDATA data")
EndIf (G4PARTICLEXSDATA)



Message("G4PIIDATA: $ENV{G4PIIDATA}")
#If(DEFINED ENV{G4PIIDATA})
# Set(G4PIIDATA $ENV{G4PIIDATA})
Expand Down
1 change: 1 addition & 0 deletions cmake/scripts/config.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ if [ $same_system -eq 1 ]; then
export G4NeutronHPCrossSections="@G4NeutronHPCrossSections@"
export G4NEUTRONHPDATA="@G4NeutronHPCrossSections@"
export G4NEUTRONXSDATA="@G4NEUTRONXSDATA@"
export G4PARTICLEXSDATA="@G4PARTICLEXSDATA@"
export G4PIIDATA="@G4PIIDATA@"
export G4RADIOACTIVEDATA="@G4RADIOACTIVEDATA@"
export G4REALSURFACEDATA="@G4REALSURFACEDATA@"
Expand Down

0 comments on commit 2f2391b

Please sign in to comment.