-
Notifications
You must be signed in to change notification settings - Fork 486
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
Ensure relocatable package config files #2879
Conversation
FYI I think that some generated files may still not be relocatable (for example the |
The CMake config used absolute paths which doesn't allow to move the installed cmake files. This is the case, e.g., if you create a conan package and distribute the binaries to other users. Fixes: gazebosim#2755 Fixes: gazebosim#2782
adb54b5
to
605be53
Compare
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
I think I broke something because the tests that compile example code are failing |
I had trouble reproducing this because I was running the tests directly instead of calling |
The CMAKE_PREFIX_PATH and PKG_CONFIG_PATH values used in the tests aren't working with the relocatable config files. Signed-off-by: Steve Peters <scpeters@openrobotics.org>
reverting some environment variables in GazeboTestUtils in e7fcb46 fixes the compilation tests, though they now require |
this looks good to me now, but I'd like @j-rivero to take a look since I've modified it from the original version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The generated .pc
files looks good to me. The failing tests in Windows are not related to these changes.
gazebosim#2879 introduced an assumption that CMAKE_INSTALL_LIBDIR is relative, by concatenating it with CMAKE_INSTALL_PREFIX. Instead, this path should be formed using CMAKE_INSTALL_FULL_LIBDIR.
#2879 introduced an assumption that CMAKE_INSTALL_LIBDIR is relative, by concatenating it with CMAKE_INSTALL_PREFIX. Instead, this path should be formed using CMAKE_INSTALL_FULL_LIBDIR.
The CMake config used absolute paths which doesn't allow to move the installed cmake files. This is the case, e.g., if you create a conan package and distribute the binaries to other users.
Fixes: #2755
Fixes: #2782