From 2458cc3fde3f7d06ac2ba021aeea3e6d21e29fce Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Wed, 22 May 2024 15:14:31 -0400 Subject: [PATCH] eicrecon: provide version This should fix `eicrecon --version` https://github.com/eic/EICrecon/blob/main/cmake/git_version.cmake --- packages/eicrecon/package.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/eicrecon/package.py b/packages/eicrecon/package.py index 200b545..418222a 100644 --- a/packages/eicrecon/package.py +++ b/packages/eicrecon/package.py @@ -239,8 +239,11 @@ class Eicrecon(CMakePackage): depends_on("catch2", when="@1.0.0:") depends_on("cppgsl", when="@1.7:") depends_on("algorithms", when="@1.7:") - depends_on("py-onnxruntime", when="@1.12:") # FIXME change to 1.13 when released + depends_on("py-onnxruntime", when="@1.13:") + def cmake_flags(self): + return [f"-DVERSION={self.version}"] + def setup_run_environment(self, env): env.prepend_path( "JANA_PLUGIN_PATH", join_path(self.prefix, "lib", "EICrecon", "plugins")