]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake: fix build WITH_SYSTEM_BOOST=ON 23510/head
authorKefu Chai <kchai@redhat.com>
Thu, 9 Aug 2018 06:07:10 +0000 (14:07 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 9 Aug 2018 10:57:04 +0000 (18:57 +0800)
commit46c8b04a982651861d3663fb6f1db8c98775b084
tree349150046b63ab91e91fbb4c907b24720d58a38b
parentbfd0cde8ff1e440d2b3a2ec84a201de0fd40f199
cmake: fix build WITH_SYSTEM_BOOST=ON

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>
CMakeLists.txt
cmake/modules/BuildBoost.cmake
src/mgr/CMakeLists.txt