ChimeraTK / project-template

Template for new projects. Can also be used to update cmake scripts in existing projects by merging the changes. This repository intentionally does not have a README.md (which would create conflicts in the projects using this template). For documentation, please follow this link:
https://github.com/ChimeraTK/project-template/blob/master/HowTo_project-template.md
GNU Lesser General Public License v3.0
1 stars 3 forks source link

fix: remove extra rpath from DOOCS imported targets #28

Closed mhier closed 1 year ago

mhier commented 1 year ago

This should fix problems with additional RPATH in e.g. test executables linking (directly or indirectly) against DOOCS libraries. The DOOCS library path was set via the linker flags in the imported targets and hence ending up always first in the resulting RPATH, even before the build directory. cmake seems to append the library paths to the RPATH of the target binaries later, not via the linker flags (no rpath flags are visible in the linker command line). Hence explicit RPATH handling is unnecessary and even bug prone.