[CMake] FindPythonLibs

Andreas Beckermann b_mann at gmx.de
Mon May 29 10:44:33 EDT 2006


Hi
I have a problem with FindPythonLibs on unix: if the shared version of this 
library is not available (but the static one is!), then dependencies of the 
python libraries are not resolved.
I think FindPythonLibs.cmake should place the dependencies into the 
PYTHON_LIBRARIES variable, i.e. cmake should end up 
using "-lpython2.4 -lutil -lpthread ..." instead of just "-lpython2.4".

One way to this would be to create a small test program that is being 
compiled&&linked in order to test which dependencies are required. See e.g. 
the configure tests of the KDE project "pre-cmake" (admin/acinclude.m4.in).
I don't see a nicer solution for this problem atm, maybe anyone else does?

CU
Andi


More information about the CMake mailing list