From 01f0f71032d61582f7054694fdcffd7dc27f655e Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Mon, 23 Oct 2023 20:42:59 +0200 Subject: [PATCH] Add possible workaround for ROOT_INCLUDE_PATH --- packages/key4hep-stack/package.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/key4hep-stack/package.py b/packages/key4hep-stack/package.py index 827d7bfe..642e15dd 100644 --- a/packages/key4hep-stack/package.py +++ b/packages/key4hep-stack/package.py @@ -159,5 +159,10 @@ def setup_run_environment(self, env): self.spec["opendatadetector"].prefix.share + "/OpenDataDetector", ) + for dep in self.spec.traverse(order="post"): + if dep.satisfies("^root"): + # add the root include path to ROOT_INCLUDE_PATH + env.prepend_path("ROOT_INCLUDE_PATH", dep.prefix.include) + def install(self, spec, prefix): return install_setup_script(self, spec, prefix, "K4_LATEST_SETUP_PATH")