-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fccanalyses: add a podio dependency and a docs variant (#665)
- Loading branch information
Showing
1 changed file
with
6 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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,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 | ||
|