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

cmake ignores -DCMAKE_INSTALL_RPATH #5

Open
fnoop opened this issue Dec 21, 2017 · 1 comment
Open

cmake ignores -DCMAKE_INSTALL_RPATH #5

fnoop opened this issue Dec 21, 2017 · 1 comment

Comments

@fnoop
Copy link
Contributor

fnoop commented Dec 21, 2017

If altering the destination install directory with -DCMAKE_INSTALL_PREFIX, sample binary doesn't run because -DCMAKE_INSTALL_RPATH is ignored, so no path to library.

@lucize
Copy link

lucize commented Feb 9, 2019

I know is late, but searched for this, days, and between searches I reached this comment, here how I solved the problem, also add:

    -DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE \
    -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=BOTH \
    -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=BOTH \

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

No branches or pull requests

2 participants