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

[FindPoco.cmake] Only use 'd' suffix when debug libraries are present. #50

Merged
merged 1 commit into from
Mar 19, 2019

Conversation

nuclearsandwich
Copy link
Member

Recent versions of Debian and Ubuntu (beginning with Stretch and Bionic respectively) do not provide separate debug library versions of Poco.

The refactored debug check now actually verifies that a d-suffixed library exists. If not it falls back to using the non-suffixed version of the library which may or may not include debug symbols.

This change resolves #49 and ros/class_loader#117

As far as targeting for this PR. I've tested it naively on Xenial and Bionic so in theory it's backwards compatible enough to be released in earlier ROS releases without impact but I don't think that it brings value to systems earlier than Stretch and Bionic. It may also be worth deprecating the FindPoco.cmake module as both Debian and Ubuntu are distributing Poco with a CMake find module as of Buster and Bionic respectively.

Recent versions of Debian and Ubuntu (beginning with Stretch and Bionic
respectively) do not provide separate debug library versions of Poco.

The refactored debug check now actually verifies that a d-suffixed
library exists. If not it falls back to using the non-suffixed version
of the library which may or may not include debug symbols.
@wjwwood
Copy link
Member

wjwwood commented Mar 19, 2019

@nuclearsandwich should this be merged and released now?

@nuclearsandwich
Copy link
Member Author

should this be merged and released now?

I think it should probably at least be released into Melodic as it's preventing debug builds with class_loader from succeeding. But I don't think it's important that it be released in any earlier distro unless it's easier than releasing to just Melodic.

@wjwwood wjwwood merged commit 66d4034 into 0.4-devel Mar 19, 2019
@wjwwood wjwwood deleted the fix-poco-debug-lib branch March 19, 2019 22:48
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.

FindPoco doesn't validate presence of Debug libraries in Debug configuration
2 participants