Commit 238492be authored by Gabriele Buondonno's avatar Gabriele Buondonno
Browse files

[bindings] [CMakeLists] Use .so for Mac and .pyd for Windows

parent 42219849
......@@ -54,5 +54,12 @@ 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)
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