From 072c8b714a00c024177d0e9e5e84b2b564a1f8bb Mon Sep 17 00:00:00 2001 From: John Coyle Date: Tue, 13 Dec 2016 23:19:56 -0500 Subject: [PATCH] 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 --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 49b741e8752..47297e5549a 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) -- 2.47.3