From 672ca27ee9c6d05cd192f3a2e6b6d196dfb06f8f Mon Sep 17 00:00:00 2001 From: Juan Miguel Carceller <22276694+jmcarcell@users.noreply.github.com> Date: Wed, 16 Oct 2024 20:23:59 +0200 Subject: [PATCH] fccanalyses: add a podio dependency and a docs variant (#665) --- packages/fccanalyses/package.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/fccanalyses/package.py b/packages/fccanalyses/package.py index b2cddd97..d41a91bb 100644 --- a/packages/fccanalyses/package.py +++ b/packages/fccanalyses/package.py @@ -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" @@ -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") @@ -62,6 +65,7 @@ class Fccanalyses(CMakePackage, Key4hepPackage): depends_on("py-onnxruntime", when="+onnx") depends_on("delphes@3.5.1pre07:", when="@0.7.0:") depends_on("catch2@3:", type=("test")) + depends_on("doxygen", type="build", when="+docs") def cmake_args(self): args = [ @@ -69,8 +73,10 @@ def cmake_args(self): 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