diff options
author | Brad King <brad.king@kitware.com> | 2010-09-28 18:04:24 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2010-09-28 18:04:24 (GMT) |
commit | e66c12a2659df4fe74a199fb805969581676b36a (patch) | |
tree | a206ed5e58acf37b76e6852f3786ed463736ef13 /Modules | |
parent | c86d677fe0456bebfe8e361038f3b1e37c9c285d (diff) | |
parent | d36c16a7609d3329dc32ae800570a0a06dea628e (diff) | |
download | CMake-e66c12a2659df4fe74a199fb805969581676b36a.zip CMake-e66c12a2659df4fe74a199fb805969581676b36a.tar.gz CMake-e66c12a2659df4fe74a199fb805969581676b36a.tar.bz2 |
Merge topic 'python_module_prefix_suffix'
d36c16a Set the module prefix, updated Windows suffix.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindPythonLibs.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/FindPythonLibs.cmake b/Modules/FindPythonLibs.cmake index d12f14a..283c914 100644 --- a/Modules/FindPythonLibs.cmake +++ b/Modules/FindPythonLibs.cmake @@ -128,6 +128,13 @@ FUNCTION(PYTHON_ADD_MODULE _NAME ) ADD_LIBRARY(${_NAME} ${PY_MODULE_TYPE} ${ARGN}) # TARGET_LINK_LIBRARIES(${_NAME} ${PYTHON_LIBRARIES}) + IF(PYTHON_MODULE_${_NAME}_BUILD_SHARED) + SET_TARGET_PROPERTIES(${_NAME} PROPERTIES PREFIX "${PYTHON_MODULE_PREFIX}") + IF(WIN32 AND NOT CYGWIN) + SET_TARGET_PROPERTIES(${_NAME} PROPERTIES SUFFIX ".pyd") + ENDIF(WIN32 AND NOT CYGWIN) + ENDIF(PYTHON_MODULE_${_NAME}_BUILD_SHARED) + ENDIF(PYTHON_ENABLE_MODULE_${_NAME}) ENDFUNCTION(PYTHON_ADD_MODULE) |