podio, edm4hep and lcio: add lib and lib64 to LD_LIBRARY_PATH (#37881)

Co-authored-by: jmcarcell <jmcarcell@users.noreply.github.com>
This commit is contained in:
Juan Miguel Carceller 2023-09-05 17:00:16 +02:00 committed by GitHub
parent aa9eb33108
commit f709518916
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -125,6 +125,7 @@ def cmake_args(self):
return args
def setup_run_environment(self, env):
env.prepend_path("LD_LIBRARY_PATH", self.spec["edm4hep"].libs.directories[0])
env.prepend_path("PYTHONPATH", self.prefix.python)
def url_for_version(self, version):

View File

@ -16,7 +16,7 @@ class Lcio(CMakePackage):
tags = ["hep"]
maintainers("gaede", "vvolkl")
maintainers("gaede", "vvolkl", "jmcarcell")
version("master", branch="master")
version("2.20", sha256="5ef92c9ef04ce468ffb48be0ec6010377a400b064e352cb50f9f4c9599e7e990")
@ -107,6 +107,7 @@ def setup_run_environment(self, env):
env.prepend_path("PYTHONPATH", self.prefix.python)
# needed for the python bindings to find "Exceptions.h"
env.prepend_path("CPATH", self.prefix)
env.prepend_path("LD_LIBRARY_PATH", self.spec["lcio"].libs.directories[0])
@run_after("install")
def install_source(self):