eic / EICrecon

EIC Reconstruction - JANA based
https://eic.github.io/EICrecon
GNU Lesser General Public License v3.0
5 stars 24 forks source link

`eicrecon` executable bypasses rpath settings when locally installed #1521

Open wdconinc opened 1 week ago

wdconinc commented 1 week ago

Environment: (where does this bug occur, have you tried other environments)

Steps to reproduce: (give a step by step account of how to trigger the bug)

  1. eic-shell
  2. Install eicrecon
  3. readelf -d bin/eicrecon | grep RUNPATH

Expected Result: (what do you expect when you execute the steps above)

RUNPATH should include deep JANA and podio paths under /opt/software.

Actual Result: (what do you get when you execute the steps above)

 0x000000000000001d (RUNPATH)            Library runpath: [/home/wdconinc/git/EICrecon/.worktree/particle-service/lib:/home/wdconinc/git/EICrecon/.worktree/particle-service/lib/EICrecon/plugins:/opt/local/lib/root:/opt/software/linux-debian12-x86_64_v2/gcc-12.2.0/root-6.30.02-kofok23ax2v6kckmq3igjkwm6rqkqanw/lib/root]

Additional context

Since eicrecon sets up a separate project under our tree, it doesn't get the RPATH settings in the top-level CMakeLists.txt.