Andreas Beckermann wrote:
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?

The FindPythonLibs module needs to be re-written for other reasons too. Please add your comments here:

http://www.cmake.org/Bug/bug.php?op=show&bugid=2257

Thanks,
-Brad
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to