Skip to content

Conversation

@sloretz
Copy link
Contributor

@sloretz sloretz commented Jan 24, 2022

This PR links against the Boost::pythonXY target since that's the portable CMake target naming.

This should fix the build failure on RHEL8 https://build.ros2.org/view/Rbin_rhel_el864/job/Rbin_rhel_el864__cv_bridge__rhel_8_x86_64__binary/56/consoleText

DEBUG: CMake Error at /usr/share/cmake/Modules/FindPython/Support.cmake:3315 (add_library):
DEBUG:   Target "cv_bridge_boost" links to target "Boost::python" but the target was
DEBUG:   not found.  Perhaps a find_package() call is missing for an IMPORTED
DEBUG:   target, or an ALIAS target is missing?

#390 and #344 are doing very similar things, and I think this PR replaces them. I used feedback from both of those in this one. (@flynneva and @floesche FYI)

Signed-off-by: Shane Loretz <[email protected]>
@sloretz sloretz added the bug label Jan 24, 2022
@sloretz sloretz self-assigned this Jan 24, 2022
@sloretz sloretz requested a review from mjcarroll January 24, 2022 22:39
@mjcarroll mjcarroll merged commit e1df7ee into ros2 Jan 24, 2022
@mjcarroll mjcarroll deleted the sloretz__use_correct_boost_python_target branch January 24, 2022 22:42
ijnek added a commit that referenced this pull request Sep 17, 2022
This reverts commit e1df7ee.

Signed-off-by: Kenji Brameld <[email protected]>
mergify bot pushed a commit that referenced this pull request Sep 17, 2022
This reverts commit e1df7ee.

Signed-off-by: Kenji Brameld <[email protected]>
(cherry picked from commit 7a9b580)
Ace314159 added a commit to Ace314159/vision_opencv that referenced this pull request Sep 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants