garfieldpp: update dependencies, add variant (#25816)
This commit is contained in:
parent
0f9080738f
commit
81d157b05e
1 changed files with 10 additions and 0 deletions
|
@ -18,8 +18,18 @@ class Garfieldpp(CMakePackage):
|
|||
|
||||
maintainers = ['mirguest']
|
||||
|
||||
variant('examples', default=False, description="Build garfield examples")
|
||||
|
||||
version('master', branch='master')
|
||||
version('4.0', sha256='82bc1f0395213bd30a7cd854426e6757d0b4155e99ffd4405355c9648fa5ada3')
|
||||
version('3.0', sha256='c1282427a784658bc38b71c8e8cfc8c9f5202b185f0854d85f7c9c5a747c5406')
|
||||
|
||||
depends_on('root')
|
||||
depends_on('gsl')
|
||||
depends_on('geant4', when='+examples')
|
||||
|
||||
def cmake_args(self):
|
||||
args = [
|
||||
self.define_from_variant('WITH_EXAMPLES', 'examples')
|
||||
]
|
||||
return args
|
||||
|
|
Loading…
Reference in a new issue