Skip to content

Commit

Permalink
fccanalyses: add a podio dependency and a docs variant
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Oct 16, 2024
1 parent 57e59a3 commit 30220c8
Showing 1 changed file with 6 additions and 0 deletions.
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

0 comments on commit 30220c8

Please sign in to comment.