mirror of
https://github.com/ceph/ceph
synced 2024-12-17 00:46:05 +00:00
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:
parent
80ac7b124b
commit
072c8b714a
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user