Le jeudi 11 février 2010 14:57:23 Didier 'OdyX' Raboud, vous avez écrit : > tags 569321 +patch > thanks > > Hi, > > Here are the two patches that do this in a backwards-compatible way (tested > here). > > Best regards, > > OdyX
Hi again², I just updated FindPythonLibs to use a different variable. It is useful because then you can do the following to detect debug libraries (the postfix is different): dh_auto_configure --builddirectory=build-$*-dbg -- \ -DCMAKE_BUILDTYPE:STRING="Debug" \ -DCMAKE_SKIP_RPATH=true \ -DCMAKE_PYTHON_VERSION=$*-dbg \ -DCMAKE_PYTHONLIB_VERSION="$*_d;$*" \ Best regards, OdyX -- Didier Raboud, proud Debian user. CH-1020 Renens did...@raboud.com
--- /usr/share/cmake-2.8/Modules/FindPythonLibs.cmake 2009-11-13 19:32:52.000000000 +0100 +++ FindPythonLibs.cmake 2010-02-11 16:51:14.000000000 +0100 @@ -27,7 +27,14 @@ # Search for the python framework on Apple. CMAKE_FIND_FRAMEWORKS(Python) -FOREACH(_CURRENT_VERSION 2.6 2.5 2.4 2.3 2.2 2.1 2.0 1.6 1.5) +# Allows to choose your python version by setting CMAKE_PYTHON_VERSION to e.g. "2.6" +if (CMAKE_PYTHONLIB_VERSION) + SET(CMAKE_PYTHONLIB_VERSIONS ${CMAKE_PYTHONLIB_VERSION}) +else (CMAKE_PYTHONLIB_VERSION) + SET(CMAKE_PYTHONLIB_VERSIONS 2.6 2.5 2.4 2.3 2.2 2.1 2.0 1.6 1.5) +endif (CMAKE_PYTHONLIB_VERSION) + +FOREACH(_CURRENT_VERSION ${CMAKE_PYTHONLIB_VERSIONS}) STRING(REPLACE "." "" _CURRENT_VERSION_NO_DOTS ${_CURRENT_VERSION}) IF(WIN32) FIND_LIBRARY(PYTHON_DEBUG_LIBRARY
signature.asc
Description: This is a digitally signed message part.