[cmake-developers] [CMake 0013361]: Notes on FindPythonLibs(PYTHON_ADD_MODULE)
Mantis Bug Tracker
mantis at public.kitware.com
Thu Jun 28 15:47:30 EDT 2012
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=13361
======================================================================
Reported By: Daniel Franke
Assigned To:
======================================================================
Project: CMake
Issue ID: 13361
Category: Modules
Reproducibility: have not tried
Severity: tweak
Priority: normal
Status: new
======================================================================
Date Submitted: 2012-06-28 15:47 EDT
Last Modified: 2012-06-28 15:47 EDT
======================================================================
Summary: Notes on FindPythonLibs(PYTHON_ADD_MODULE)
Description:
A follow-up to http://public.kitware.com/Bug/view.php?id=10068.
Throughout the module file, the variable ${PYTHON_MODULE_PREFIX} is used
multiple times, but it is never set?! Funnily, the contents "empty" is actually
correct.
On MacOS, the required extension is .so, the default extension is .dylib:
IF(WIN32 AND NOT CYGWIN)
SET_TARGET_PROPERTIES(${_NAME} PROPERTIES SUFFIX ".pyd")
+ ELSE IF(APPLE)
+ SET_TARGET_PROPERTIES(${_NAME} PROPERTIES SUFFIX ".so")
ENDIF(WIN32 AND NOT CYGWIN)
Another function, say, PYTHON_INSTALL_MODULE that installs to
${CMAKE_INSTALL_PREFIX}/lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages
(or wherever the preferred location nowadays is), would be nice.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2012-06-28 15:47 Daniel Franke New Issue
======================================================================
More information about the cmake-developers
mailing list