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
cmake: fix build WITH_SYSTEM_BOOST=ON #23510
Conversation
9841904
to
c9879a5
Compare
FindBoost.cmake from upstream cmake now finds python libraries like find_package(Boost 1.67 python36) and it export targets like Boost::python36 but we are still linking against Boost::python, so to be compatible with FindBoost.cmake, we need to update BuildBoost.cmake and mgr/CMakeLists.txt accordingly. in other words, to export Boost::python36 and to link Boost::python36. Signed-off-by: Kefu Chai <kchai@redhat.com>
c9879a5
to
46c8b04
Compare
@tchaikov |
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.
Have had several Jenkins runs already with this patch.
Latest:
http://cephdev.digiware.nl:8180/jenkins/job/ceph-master/2426/console
@wjwithagen thanks for testing! |
@tchaikov |
no, i don't think so. as it does not break the build. i introduced this fix just to enable Ceph to find pre-built |
@tchaikov
But I think that cannot be cherrypicked, so it warants a separate PR. |
i was trying to answer your question.
no, i don't think so. as it does not break the build. i introduced this fix just to enable Ceph to find pre-built
please follow the instructions at #26277 (comment) for backporting the changes. |
Tracker: http://tracker.ceph.com/issues/38213 |
@smithfarm |
FindBoost.cmake from upstream cmake now finds python libraries like
find_package(Boost 1.67 python36)
and it export targets like Boost::python36
but we are still linking against Boost::python, so to be compatible
with FindBoost.cmake, we need to update BuildBoost.cmake and
mgr/CMakeLists.txt accordingly. in other words, to export
Boost::python36 and to link Boost::python36.
Signed-off-by: Kefu Chai kchai@redhat.com