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

Fix assumptions that CMAKE_INSTALL_*DIR paths are relative. #142

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lopsided98
Copy link

The CMAKE_INSTALL_*DIR variables are not guaranteed to be relative to the install prefix.

See https://github.com/jtojnar/cmake-snips#assuming-cmake_install_dir-is-relative-path for more information.

@lopsided98 lopsided98 force-pushed the cmake-install-absolute branch 6 times, most recently from a627bd3 to cbe6884 Compare November 11, 2022 18:46
@lopsided98 lopsided98 changed the title Fix assumptions that CMAKE_INSTALL_*DIR paths are relative. Fix assumptions that CMAKE_INSTALL_*DIR paths are relative. Nov 11, 2022
@lopsided98
Copy link
Author

I updated this PR to work with the latest version and I would appreciate feedback on it. It would be great to get this included upstream because we rely on it to build urdfdom in nixpkgs.

@lopsided98 lopsided98 force-pushed the cmake-install-absolute branch from cbe6884 to 244edd2 Compare September 10, 2023 17:32
@lopsided98
Copy link
Author

I fixed the conflicts.

@lopsided98 lopsided98 force-pushed the cmake-install-absolute branch from 244edd2 to 6b9318d Compare January 21, 2024 18:21
When an absolute path is desired, the CMAKE_INSTALL_FULL_*DIR variables should
be used instead of concatenating with CMAKE_INSTALL_PREFIX. Special handling is
also needed for pkg-config and CMake config files to retain relative paths if
the lib/include directories are subdirectories of the install prefix.

Signed-off-by: Ben Wolsieffer <[email protected]>
@lopsided98 lopsided98 force-pushed the cmake-install-absolute branch from 6b9318d to 61a7e35 Compare January 21, 2024 18:22
@lopsided98
Copy link
Author

Fixed the conflicts.

muellerbernd added a commit to muellerbernd/urdfdom that referenced this pull request Jan 29, 2024
muellerbernd added a commit to muellerbernd/urdfdom that referenced this pull request Jan 29, 2024
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

Successfully merging this pull request may close these issues.

1 participant