Commit 10d5b6b4 authored by Joseph Mirabel's avatar Joseph Mirabel
Browse files

[CMake] Fix suffix of Python module.

parent 6e60ea38
......@@ -54,12 +54,7 @@ SET_TARGET_PROPERTIES(${LIBRARY_NAME} PROPERTIES
PREFIX ""
LIBRARY_OUTPUT_NAME ${LIBRARY_NAME})
IF(APPLE)
# We need to change the extension for python bindings
SET_TARGET_PROPERTIES(${LIBRARY_NAME} PROPERTIES SUFFIX ".so")
ELSEIF(WIN32)
SET_TARGET_PROPERTIES(${LIBRARY_NAME} PROPERTIES SUFFIX ".pyd")
ENDIF(APPLE)
SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES SUFFIX "${PYTHON_EXT_SUFFIX}")
INSTALL(TARGETS ${LIBRARY_NAME}
DESTINATION ${PYTHON_SITELIB})
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment