Ricardo Sánchez-Sáez <[email protected]> added the comment:
I am using it to tell CMake where are the Python Libraries for linking.
Here's a snippet from my FindPythonLibs.cmake (I am attaching the whole
file as well):
...
EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "import
distutils.sysconfig\nprint
distutils.sysconfig.get_config_var('LINKFORSHARED')"
OUTPUT_VARIABLE PYTHON_LDFLAGS_OUTPUT_VARIABLE
ERROR_VARIABLE PYTHON_LDFLAGS_ERROR_VARIABLE
RESULT_VARIABLE PYTHON_LDFLAGS_RETURN_VALUE
)
...
Does anybody happen to know a better/more correct way for linking the
python libs?
----------
Added file: http://bugs.python.org/file15567/FindPythonLibs.cmake
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue3588>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com