summaryrefslogtreecommitdiffstats
path: root/src/pybind/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/pybind/CMakeLists.txt')
-rw-r--r--src/pybind/CMakeLists.txt8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/pybind/CMakeLists.txt b/src/pybind/CMakeLists.txt
index 6a4ba94ebd0..9acea1db921 100644
--- a/src/pybind/CMakeLists.txt
+++ b/src/pybind/CMakeLists.txt
@@ -1,9 +1,7 @@
+find_package(Cython REQUIRED)
+include(Distutils)
+
set(CYTHON_MODULE_DIR ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/cython_modules)
-get_property(compiler_launcher GLOBAL PROPERTY RULE_LAUNCH_COMPILE)
-get_property(link_launcher GLOBAL PROPERTY RULE_LAUNCH_LINK)
-set(PY_CC \"${compiler_launcher} ${CMAKE_C_COMPILER}\")
-set(PY_CXX \"${compiler_launcher} ${CMAKE_CXX_COMPILER}\")
-set(PY_LDSHARED \"${link_launcher} ${CMAKE_C_COMPILER} -shared\")
add_subdirectory(rados)
add_subdirectory(rbd)