summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/edm4hep/package.py1
-rw-r--r--var/spack/repos/builtin/packages/podio/package.py4
2 files changed, 4 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/edm4hep/package.py b/var/spack/repos/builtin/packages/edm4hep/package.py
index ee654e125d..1cdad385cb 100644
--- a/var/spack/repos/builtin/packages/edm4hep/package.py
+++ b/var/spack/repos/builtin/packages/edm4hep/package.py
@@ -39,6 +39,7 @@ class Edm4hep(CMakePackage):
# C++ Standard
args.append(self.define('CMAKE_CXX_STANDARD',
self.spec.variants['cxxstd'].value))
+ args.append(self.define("BUILD_TESTING", self.run_tests))
return args
def url_for_version(self, version):
diff --git a/var/spack/repos/builtin/packages/podio/package.py b/var/spack/repos/builtin/packages/podio/package.py
index a6e6e10a02..5ed4d38a98 100644
--- a/var/spack/repos/builtin/packages/podio/package.py
+++ b/var/spack/repos/builtin/packages/podio/package.py
@@ -44,12 +44,14 @@ class Podio(CMakePackage):
depends_on('py-pyyaml', type=('build', 'run'))
depends_on('py-jinja2@2.10.1:', type=('build', 'run'), when='@0.12.0:')
depends_on('sio', type=('build', 'link'), when='+sio')
+ depends_on('catch2@3.0.1:', type=('test'), when="@0.13:")
conflicts('+sio', when='@:0.12', msg='sio support requires at least podio@0.13')
def cmake_args(self):
args = [
- self.define_from_variant('ENABLE_SIO', 'sio')
+ self.define_from_variant('ENABLE_SIO', 'sio'),
+ self.define("BUILD_TESTING", self.run_tests),
]
return args