aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ceph/boost-python.patch
blob: 77a4402da470217887f1a6bd12f931a115688fe4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ebccbee..f9240f1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -465,7 +465,7 @@ set(Boost_USE_MULTITHREADED ON)
 set(BOOST_COMPONENTS
 	thread system regex random program_options date_time iostreams)
 if(WITH_MGR)
-	list(APPEND BOOST_COMPONENTS python)
+	list(APPEND BOOST_COMPONENTS python27)
 endif()
 
 # require minimally the bundled version
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 93963cf..15df5ad 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -596,7 +596,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})
+      -lboost_python27 ${PYTHON_LIBRARIES} ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS} ${ALLOC_LIBS})
   install(TARGETS ceph-mgr DESTINATION bin)
 endif (WITH_MGR)