Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMakeLists.txt: Use CMAKE's "Always full RPATH" #19

Closed
wants to merge 1 commit into from

Conversation

flokli
Copy link

@flokli flokli commented Aug 1, 2019

When building tests, the test scripts already have RUNPATH set to
${CMAKE_INSTALL_PREFIX}/lib…, which might not be populated yet in
sandboxed builds, so the dynamic linker will fail to find them, and the
tests fail.

By using CMAKE's "Always full RPATH" logic described in
https://gitlab.kitware.com/cmake/community/wikis/doc/cmake/RPATH-handling#always-full-rpath, we can fix this.

When building tests, the test scripts already have RUNPATH set to
${CMAKE_INSTALL_PREFIX}/lib…, which might not be populated yet in
sandboxed builds, so the dynamic linker will fail to find them, and the
tests fail.

By using CMAKE's "Always full RPATH" logic described in
https://gitlab.kitware.com/cmake/community/wikis/doc/cmake/RPATH-handling#always-full-rpath
, we can fix this.

Signed-off-by: Florian Klink <flokli@flokli.de>
@balos1
Copy link
Member

balos1 commented Nov 2, 2020

Included in SUNDIALS 5.5.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants