summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/dd4hep
diff options
context:
space:
mode:
authorvvolkl <valentin.volkl@cern.ch>2021-01-26 08:57:13 +0100
committerGitHub <noreply@github.com>2021-01-26 08:57:13 +0100
commitb45a31aefe065c0cb6761034384af2aa1d2c41f3 (patch)
treea5a8058cc482e67605ffb47120bae6cd345e869f /var/spack/repos/builtin/packages/dd4hep
parenteb60c858a0c959d6ad200324cc34d91e27d74ad3 (diff)
downloadspack-b45a31aefe065c0cb6761034384af2aa1d2c41f3.tar.gz
spack-b45a31aefe065c0cb6761034384af2aa1d2c41f3.tar.bz2
spack-b45a31aefe065c0cb6761034384af2aa1d2c41f3.tar.xz
spack-b45a31aefe065c0cb6761034384af2aa1d2c41f3.zip
[dd4hep] fix assimp variant (#21226)
Diffstat (limited to 'var/spack/repos/builtin/packages/dd4hep')
-rw-r--r--var/spack/repos/builtin/packages/dd4hep/package.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/dd4hep/package.py b/var/spack/repos/builtin/packages/dd4hep/package.py
index b1fc34db21..68c909563b 100644
--- a/var/spack/repos/builtin/packages/dd4hep/package.py
+++ b/var/spack/repos/builtin/packages/dd4hep/package.py
@@ -49,7 +49,9 @@ class Dd4hep(CMakePackage):
variant('hepmc3', default=False, description="Enable build with hepmc3")
variant('lcio', default=False, description="Enable build with lcio")
variant('edm4hep', default=True, description="Enable build with edm4hep")
- variant('debug', default=False, description="Enable debug build")
+ variant('debug', default=False,
+ description="Enable debug build flag - adds extra info in"
+ " some places in addtion to the debug build type")
depends_on('cmake @3.12:', type='build')
depends_on('ninja', type='build')
@@ -58,7 +60,7 @@ class Dd4hep(CMakePackage):
extends('python')
depends_on('xerces-c', when='+xercesc')
depends_on('geant4@10.2.2:', when='+geant4')
- depends_on('assimp', when='+assimp')
+ depends_on('assimp@5.0.2:', when='+assimp')
depends_on('hepmc3', when="+hepmc3")
depends_on('lcio', when="+lcio")
depends_on('edm4hep', when="+edm4hep")
@@ -75,8 +77,11 @@ class Dd4hep(CMakePackage):
self.define_from_variant('DD4HEP_USE_GEANT4', 'geant4'),
self.define_from_variant('DD4HEP_USE_LCIO', 'lcio'),
self.define_from_variant('DD4HEP_USE_HEPMC3', 'hepmc3'),
- self.define_from_variant('DD4HEP_LOAD_ASSIMP', 'assimp'),
self.define_from_variant('DD4HEP_BUILD_DEBUG', 'debug'),
+ # Downloads assimp from github and builds it on the fly.
+ # However, with spack it is preferrable to have a proper external
+ # dependency, so we disable it.
+ self.define('DD4HEP_LOAD_ASSIMP', False),
"-DCMAKE_CXX_STANDARD={0}".format(cxxstd),
"-DBUILD_TESTING={0}".format(self.run_tests),
"-DBOOST_ROOT={0}".format(spec['boost'].prefix),