Skip to content
Snippets Groups Projects
Commit 238492be authored by Gabriele Buondonno's avatar Gabriele Buondonno
Browse files

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

parent 42219849
No related branches found
No related tags found
No related merge requests found
......@@ -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})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment