summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Madlener <thomas.madlener@desy.de>2024-09-02 15:39:43 +0200
committerGitHub <noreply@github.com>2024-09-02 08:39:43 -0500
commitc814fb5fe64a6b8e90b40e6a9f64ad500725f01b (patch)
tree0d0be2130c4422877ddfd7fcaa261235095a56f4
parentfe2d06399f84f430fede6999c8066b6ed61e3ea5 (diff)
downloadspack-c814fb5fe64a6b8e90b40e6a9f64ad500725f01b.tar.gz
spack-c814fb5fe64a6b8e90b40e6a9f64ad500725f01b.tar.bz2
spack-c814fb5fe64a6b8e90b40e6a9f64ad500725f01b.tar.xz
spack-c814fb5fe64a6b8e90b40e6a9f64ad500725f01b.zip
podio: Add the new datasource variant once it is available (#46078)
* podio: Add the new datasource variant once it is available * Make sure to require a suitable minimal root version
-rw-r--r--var/spack/repos/builtin/packages/podio/package.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/podio/package.py b/var/spack/repos/builtin/packages/podio/package.py
index 324af4f23f..a4c00ce226 100644
--- a/var/spack/repos/builtin/packages/podio/package.py
+++ b/var/spack/repos/builtin/packages/podio/package.py
@@ -80,8 +80,15 @@ class Podio(CMakePackage):
)
variant("sio", default=False, description="Build the SIO I/O backend")
variant("rntuple", default=False, description="Build the RNTuple backend")
+ variant(
+ "datasource",
+ default=False,
+ description="Build the RDataSource for reading podio collections",
+ when="@1.0.2:",
+ )
depends_on("root@6.08.06: cxxstd=17", when="cxxstd=17")
+ depends_on("root@6.14:", when="+datasource")
depends_on("root@6.28.04: +root7", when="+rntuple")
depends_on("root@6.28:", when="@0.17:")
for cxxstd in ("17", "20"):
@@ -113,6 +120,7 @@ class Podio(CMakePackage):
args = [
self.define_from_variant("ENABLE_SIO", "sio"),
self.define_from_variant("ENABLE_RNTUPLE", "rntuple"),
+ self.define_from_variant("ENABLE_DATASOURCE", "datasource"),
self.define("CMAKE_CXX_STANDARD", self.spec.variants["cxxstd"].value),
self.define("BUILD_TESTING", self.run_tests),
]