Skip to content

Commit

Permalink
Merge pull request MuonColliderSoft#18 from MuonColliderSoft/tmadlene…
Browse files Browse the repository at this point in the history
…r-patch-1

Make sure vdt is properly included into the environment
  • Loading branch information
madbaron authored Dec 10, 2024
2 parents 538b274 + 43e969b commit 6cfa285
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/mucoll-stack/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,12 @@ def setup_run_environment(self, env):
env.set('MUCOLL_GEO', os.path.join(self.spec['lcgeo'].prefix.share.lcgeo.compact, 'MuColl/MuColl_v1/MuColl_v1.xml'))
env.set('MUCOLL_RELEASE_VERSION', self.spec.version)

# set vdt, needed for root, see https://github.com/spack/spack/pull/37278
if "vdt" in self.spec:
env.prepend_path("CPATH", self.spec["vdt"].prefix.include)
# When building podio with +rntuple there are warnings constantly without this
env.prepend_path("LD_LIBRARY_PATH", self.spec["vdt"].libs.directories[0])

env.prepend_path('LD_LIBRARY_PATH', self.spec['root'].prefix.lib.root)

# remove when https://github.com/spack/spack/pull/37881 is merged
Expand Down

0 comments on commit 6cfa285

Please sign in to comment.