find_package(Python3Libs 3 REQUIRED)
endif()
+# the major version of the python bindings as a dependency of other
+# targets
+if(WITH_PYTHON2)
+ set(PY_BINDING_INFIX "")
+else()
+ set(PY_BINDING_INFIX 3)
+endif()
+
if(HAVE_XIO)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I${XIO_INCLUDE_DIR}")
list(APPEND EXTRALIBS ${XIO_LIBRARY} pthread)
monmaptool
crushtool
rados
- cython_rados
- )
+ cython${PY_BINDING_INFIX}_rados)
add_custom_target(vstart DEPENDS
vstart-base
ceph-mds
- cython_rbd)
+ cython${PY_BINDING_INFIX}_rbd)
if(WITH_RADOSGW)
add_dependencies(vstart radosgw radosgw-admin)
endif(WITH_RADOSGW)
add_custom_target(cephfs_testing DEPENDS
vstart
rados
- cython_modules
+ cython${PY_BINDING_INFIX}_modules
cephfs
cls_cephfs
ceph-fuse