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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Nov 18 13:40:15 2012 UTC (22 months ago) by kensington
Branch: MAIN
Version bump, remove old.

(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key 675D0D2C)

1 diff --git a/Modules/FindPythonLibs.cmake b/Modules/FindPythonLibs.cmake
2 index 0a9a990..6a13d22 100644
3 --- a/Modules/FindPythonLibs.cmake
4 +++ b/Modules/FindPythonLibs.cmake
5 @@ -79,6 +79,8 @@ unset(_PYTHON1_VERSIONS)
6 unset(_PYTHON2_VERSIONS)
7 unset(_PYTHON3_VERSIONS)
8
9 +EXECUTE_PROCESS(COMMAND python -c "import sys; sys.stdout.write('.'.join([str(x) for x in sys.version_info[:2]]))"
10 + OUTPUT_VARIABLE _Python_VERSIONS)
11 foreach(_CURRENT_VERSION ${_Python_VERSIONS})
12 string(REPLACE "." "" _CURRENT_VERSION_NO_DOTS ${_CURRENT_VERSION})
13 if(WIN32)

  ViewVC Help
Powered by ViewVC 1.1.20