Skip to content
Snippets Groups Projects
Commit cd95645a authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Correctly propagate Geant4Files env variables to legacy Gauss

parent cf3ce749
No related branches found
No related tags found
1 merge request!79"Modernize" CMake configuration
......@@ -74,6 +74,25 @@ if(GAUDI_LEGACY_CMAKE_SUPPORT)
if(NOT legacy_cmake_config_support)
message(FATAL_ERROR "GAUDI_LEGACY_CMAKE_SUPPORT set to TRUE, but cannot find LegacyGaudiCMakeSupport.cmake")
endif()
# define environment variables to locate Geant4 data files
if(Geant4Files_FOUND)
set_property(GLOBAL APPEND PROPERTY Geant4_ENVIRONMENT
DEFAULT G4DATA ${GEANT4_INSTALL_DATADIR}
SET G4LEVELGAMMADATA \${G4DATA}/PhotonEvaporation5.7
SET G4RADIOACTIVEDATA \${G4DATA}/RadioactiveDecay5.6
SET G4LEDATA \${G4DATA}/G4EMLOW7.13
SET G4NEUTRONHPDATA \${G4DATA}/G4NDL4.6
SET G4ABLADATA \${G4DATA}/G4ABLA3.1x
SET G4REALSURFACEDATA \${G4DATA}/RealSurface2.2
SET G4PIIDATA \${G4DATA}/G4PII1.3
SET G4ELASTICDATA \${G4DATA}/G4ELASTIC1.1
SET G4SAIDXSDATA \${G4DATA}/G4SAIDDATA2.0
SET G4ENSDFSTATEDATA \${G4DATA}/G4ENSDFSTATE2.3
SET G4PARTICLEXSDATA \${G4DATA}/G4PARTICLEXS3.1.1
SET G4INCLDATA \${G4DATA}/G4INCL1.0
)
endif()
endif()
# Note: this enables building of tests, but not the Geant4 ones (that require GEANT4_ENABLE_TESTING and GEANT4_BUILD_TESTS)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment