Message96451
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? |
|
Date |
User |
Action |
Args |
2009-12-15 17:35:14 | rsanchezsaez | set | recipients:
+ rsanchezsaez, ronaldoussoren, tarek, naufraghi, khinsen |
2009-12-15 17:35:14 | rsanchezsaez | set | messageid: <1260898514.11.0.11959216535.issue3588@psf.upfronthosting.co.za> |
2009-12-15 17:35:12 | rsanchezsaez | link | issue3588 messages |
2009-12-15 17:35:12 | rsanchezsaez | create | |
|