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

Make install DESTINATION relative for stuff #446

Conversation

bartlettroscoe
Copy link
Member

@bartlettroscoe bartlettroscoe commented Feb 4, 2022

This makes:

cmake --install . --prefix <install-prefix>

work correctly.

Turns out that install rules should be defined carefully so that install( ... DESTINATION <dest> ... ) is relative when possible (unless someone overrides this explicitly).

I tested this manually and with this change, everything in TribitsExampleProject seemed to install under the new <install-prefix> correctly.

This allows things like:

   cmake --install . --prefix <install-prefix>

to work correctly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant