/[gentoo-x86]/dev-util/cmake/files/cmake-2.8.3-FindPythonLibs.patch
Gentoo

Contents of /dev-util/cmake/files/cmake-2.8.3-FindPythonLibs.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun May 8 11:33:39 2011 UTC (2 years, 11 months ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
Drop older stuff. Keep just latest stable.

(Portage version: 2.2.0_alpha31/cvs/Linux x86_64)

1 --- Modules/FindPythonLibs.cmake
2 +++ Modules/FindPythonLibs.cmake
3 @@ -27,7 +27,9 @@
4 # Search for the python framework on Apple.
5 CMAKE_FIND_FRAMEWORKS(Python)
6
7 -FOREACH(_CURRENT_VERSION 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0 1.6 1.5)
8 +EXECUTE_PROCESS(COMMAND python -c "import sys; sys.stdout.write('.'.join([str(x) for x in sys.version_info[:2]]))"
9 + OUTPUT_VARIABLE _PYTHON_VERSION)
10 +FOREACH(_CURRENT_VERSION ${_PYTHON_VERSION})
11 STRING(REPLACE "." "" _CURRENT_VERSION_NO_DOTS ${_CURRENT_VERSION})
12 IF(WIN32)
13 FIND_LIBRARY(PYTHON_DEBUG_LIBRARY

  ViewVC Help
Powered by ViewVC 1.1.20