Skip to content
Snippets Groups Projects
Unverified Commit f1f58271 authored by Patrick Gartung's avatar Patrick Gartung Committed by GitHub
Browse files

Set Geant4 cmake module path environment variable in dependents. (#11112)

parent 553acbbe
No related branches found
No related tags found
No related merge requests found
...@@ -143,3 +143,16 @@ def make_data_links(self): ...@@ -143,3 +143,16 @@ def make_data_links(self):
for d in dirs: for d in dirs:
target = os.readlink(d) target = os.readlink(d)
os.symlink(target, os.path.basename(target)) os.symlink(target, os.path.basename(target))
def setup_dependent_environment(self, spack_env, run_env, dep_spec):
version = self.version
major = version[0]
minor = version[1]
if len(version) > 2:
patch = version[-1]
else:
patch = 0
datadir = 'Geant4-%s.%s.%s' % (major, minor, patch)
spack_env.append_path('CMAKE_MODULE_PATH',
'{0}/{1}/Modules'.format(
self.prefix.lib64, datadir))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment