Re: [CMake] What is the proper cross-platform way to link the Python library?

2013-01-07 Thread Stephen Kelly
Alan W. Irwin wrote: If/when that python.org bug is fixed I will look into the Is it reported? If not it won't get fixed. I assume you saw this? http://thread.gmane.org/gmane.comp.science.paraview.user/10956/focus=11019 I wonder if that David reported it either. Thanks, Steve. --

Re: [CMake] What is the proper cross-platform way to link the Python library?

2013-01-06 Thread Rolf Eike Beer
Alan W. Irwin wrote: On several different build systems I am maintaining, target_link_libraries (or its swig equivalent) is used in the following way to link in the Python library. target_link_libraries(python target ${PYTHON_LIBRARIES}) where PYTHON_LIBRARIES has been set by using the

Re: [CMake] What is the proper cross-platform way to link the Python library?

2013-01-06 Thread Arjen Markus
On Sun, 06 Jan 2013 11:08:37 +0100 Rolf Eike Beer e...@sf-mail.de wrote: This will work as long as PYTHON_LIBRARIES contains only one element. The debug/optimized keywords apply only to the immediately following library, so if you have a list of libraries returned (currently unlikely

Re: [CMake] What is the proper cross-platform way to link the Python library?

2013-01-06 Thread Alan W. Irwin
On 2013-01-06 15:54+0100 Arjen Markus wrote: On Sun, 06 Jan 2013 11:08:37 +0100 Rolf Eike Beer e...@sf-mail.de wrote: This will work as long as PYTHON_LIBRARIES contains only one element. The debug/optimized keywords apply only to the immediately following library, so if you have a list of

[CMake] What is the proper cross-platform way to link the Python library?

2013-01-05 Thread Alan W. Irwin
On several different build systems I am maintaining, target_link_libraries (or its swig equivalent) is used in the following way to link in the Python library. target_link_libraries(python target ${PYTHON_LIBRARIES}) where PYTHON_LIBRARIES has been set by using the FindPythonLibs find module.