-
Notifications
You must be signed in to change notification settings - Fork 95
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
linking tests fails with CMAKE_BUILD_TYPE=Debug #117
Comments
I'm not able to reproduce this. Can you please share more information about the workspace, environment, and build parameters. |
Can you describe how you have tried it?
Just straight forward building the tests with build type
|
I built it in a melodic workspace based on a prerelease container I had lying around with catkin_make_isolated.
|
I see now. The issue title said building tests fails. But the tests build fine they just don't link correctly when run. Thanks for clarifying your workflow. |
The issue seems to be coming from cmake_modules. The logic here handles debug libraries. I haven't traced where it's falling down yet. I did create a little test package that exhibits successful results when finding poco without the cmake_modules package. Consider
versus
Which raises the question of whether or not the FindPoco.cmake module is still desired if the cmake config in the upstream package is generally more successful. |
ros/cmake_modules#50 is open which is my proposed fix for Melodic. |
Fixed with the latest release of |
Without specifying the build type
Poco_LIBRARIES
contains/usr/lib/libPocoFoundation.so;dl
. When building debug the variable only containsdl
- I assume because no debug libraries are available on the system.As a result building the tests fails with unresolved symbols:
The text was updated successfully, but these errors were encountered: