Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fccanalyses: add a podio dependency and a docs variant #665

Merged
merged 1 commit into from
Oct 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/fccanalyses/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class Fccanalyses(CMakePackage, Key4hepPackage):
variant("onnx", default=True, description="Build ONNX-dependent analyzers.")
variant("acts", default=False, description="Build Acts-dependent analyzers.")
variant("dd4hep", default=True, description="Build DD4hep-dependent analyzers.")
variant("docs", default=False, description="Build documentation.")

generator = "Ninja"

Expand All @@ -52,6 +53,8 @@ class Fccanalyses(CMakePackage, Key4hepPackage):
depends_on("vdt")
depends_on("fastjet")
depends_on("python")
depends_on("podio")
depends_on("podio+datasource", when="@0.10.0:")
depends_on("edm4hep")
depends_on("acts", when="+acts")
depends_on("acts@:29", when="@:0.8.0 +acts")
Expand All @@ -62,15 +65,18 @@ class Fccanalyses(CMakePackage, Key4hepPackage):
depends_on("py-onnxruntime", when="+onnx")
depends_on("[email protected]:", when="@0.7.0:")
depends_on("catch2@3:", type=("test"))
depends_on("doxygen", type="build", when="+docs")

def cmake_args(self):
args = [
f"-DCMAKE_CXX_STANDARD={self.spec['root'].variants['cxxstd'].value}",
self.define_from_variant("WITH_ACTS", "acts"),
self.define_from_variant("WITH_DD4HEP", "dd4hep"),
self.define_from_variant("WITH_ONNX", "onnx"),
self.define_from_variant("FCCANALYSES_DOCUMENTATION", "docs"),
self.define("BUILD_TESTING", self.run_tests),
]

return args

# todo: update the cmake config to remove this
Expand Down
Loading