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
This commit is contained in:
parent
fe2d06399f
commit
c814fb5fe6
@ -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 @@ def cmake_args(self):
|
||||
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),
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user