]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: fix hard coded boost python lib 12480/head
authorJohn Coyle <dx9err@gmail.com>
Wed, 14 Dec 2016 04:19:56 +0000 (23:19 -0500)
committerJohn Coyle <dx9err@gmail.com>
Wed, 14 Dec 2016 04:27:01 +0000 (23:27 -0500)
When using in tree boost build, linking will fail if boost is not installed.

Signed-off-by: John Coyle <dx9err@gmail.com>
src/CMakeLists.txt

index 49b741e8752610c9ed06125dda1ee970234f2305..47297e5549af2ea81dc60d94d0841406eac9f77f 100644 (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)