summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Johnson <glenn-johnson@uiowa.edu>2021-04-07 12:13:05 -0500
committerGitHub <noreply@github.com>2021-04-07 12:13:05 -0500
commit7c87ebeb9177641e4bfbcf3134ff08b60783e56f (patch)
treec619eb785e604c4331c2d7ad9ce736bfc1b9d08b
parent253c0d0ebbab0fd27aa7e77f3360591ae8ef90cc (diff)
downloadspack-7c87ebeb9177641e4bfbcf3134ff08b60783e56f.tar.gz
spack-7c87ebeb9177641e4bfbcf3134ff08b60783e56f.tar.bz2
spack-7c87ebeb9177641e4bfbcf3134ff08b60783e56f.tar.xz
spack-7c87ebeb9177641e4bfbcf3134ff08b60783e56f.zip
Some improvements to gate package (#22656)
- set constraint for geant4 to version 10.6 as gate does not work with geant-10.7+ - set GATE_USE_ITK: Although RTK is built under ITK, there are some ITK macros that need to be set explicitly.
-rw-r--r--var/spack/repos/builtin/packages/gate/package.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/gate/package.py b/var/spack/repos/builtin/packages/gate/package.py
index 0e24c2d66b..c7e7a83a7b 100644
--- a/var/spack/repos/builtin/packages/gate/package.py
+++ b/var/spack/repos/builtin/packages/gate/package.py
@@ -37,7 +37,7 @@ class Gate(CMakePackage):
values=('SGE', 'condor', 'openPBS', 'openmosix', 'slurm', 'xgrid'),
multi=False)
- depends_on('geant4~threads') # Gate needs a non-threaded geant4
+ depends_on('geant4@:10.6~threads') # Gate needs a non-threaded geant4
depends_on('root')
depends_on('itk+rtk', when='+rtk')
@@ -49,9 +49,15 @@ class Gate(CMakePackage):
args = []
if '+rtk' in self.spec:
- args.append('-DGATE_USE_RTK=ON')
+ args.extend([
+ '-DGATE_USE_ITK=ON',
+ '-DGATE_USE_RTK=ON',
+ ])
else:
- args.append('-DGATE_USE_RTK=OFF')
+ args.extend([
+ '-DGATE_USE_ITK=OFF',
+ '-DGATE_USE_RTK=OFF',
+ ])
return args