From: John Coyle Date: Wed, 14 Dec 2016 04:19:56 +0000 (-0500) Subject: cmake: fix hard coded boost python lib X-Git-Tag: v12.0.0~335^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=072c8b714a00c024177d0e9e5e84b2b564a1f8bb;p=ceph.git cmake: fix hard coded boost python lib When using in tree boost build, linking will fail if boost is not installed. Signed-off-by: John Coyle --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 49b741e87526..47297e5549af 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -595,7 +595,7 @@ if (WITH_MGR) $) target_include_directories(ceph-mgr PRIVATE "${PYTHON_INCLUDE_DIRS}") target_link_libraries(ceph-mgr mds osdc global - -lboost_python ${PYTHON_LIBRARIES} ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS} ${ALLOC_LIBS}) + ${Boost_PYTHON_LIBRARY} ${PYTHON_LIBRARIES} ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS} ${ALLOC_LIBS}) install(TARGETS ceph-mgr DESTINATION bin) endif (WITH_MGR)