summaryrefslogtreecommitdiffstats
path: root/Modules/FindPythonInterp.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-09-21 21:22:07 (GMT)
committerBrad King <brad.king@kitware.com>2010-09-21 21:22:07 (GMT)
commit2f665d5d1f9b4af3f9ece89565ba71bbc56ca05b (patch)
treef89fa907d37b13ae20f08fa1507cec031144bea7 /Modules/FindPythonInterp.cmake
parent5970c0f947ecc94ec4b1c0ca1d7e90d80124647c (diff)
downloadCMake-2f665d5d1f9b4af3f9ece89565ba71bbc56ca05b.zip
CMake-2f665d5d1f9b4af3f9ece89565ba71bbc56ca05b.tar.gz
CMake-2f665d5d1f9b4af3f9ece89565ba71bbc56ca05b.tar.bz2
FindPythonInterp: Look for python2.7 interpreter
Python 2.7 was released on July 3rd, 2010.
Diffstat (limited to 'Modules/FindPythonInterp.cmake')
-rw-r--r--Modules/FindPythonInterp.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/FindPythonInterp.cmake b/Modules/FindPythonInterp.cmake
index ed6ade6..6c97ba3 100644
--- a/Modules/FindPythonInterp.cmake
+++ b/Modules/FindPythonInterp.cmake
@@ -7,7 +7,7 @@
#
#=============================================================================
-# Copyright 2005-2009 Kitware, Inc.
+# Copyright 2005-2010 Kitware, Inc.
#
# Distributed under the OSI-approved BSD License (the "License");
# see accompanying file Copyright.txt for details.
@@ -20,8 +20,9 @@
# License text for the above reference.)
FIND_PROGRAM(PYTHON_EXECUTABLE
- NAMES python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 python
+ NAMES python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 python
PATHS
+ [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.7\\InstallPath]
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.6\\InstallPath]
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.5\\InstallPath]
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.4\\InstallPath]