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 <dx9err@gmail.com>
This commit is contained in:
John Coyle 2016-12-13 23:19:56 -05:00
parent 80ac7b124b
commit 072c8b714a

View File

@ -595,7 +595,7 @@ if (WITH_MGR)
$<TARGET_OBJECTS:heap_profiler_objs>)
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)