summaryrefslogtreecommitdiffstats
path: root/Modules/FindPythonInterp.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-07-18 17:56:45 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-07-18 17:56:45 (GMT)
commitb5f656e0de6e39f0fd935203e0ef2b4231af733d (patch)
tree8b58020cca8fef8af4df6ae631fddf49e3230049 /Modules/FindPythonInterp.cmake
parente118a62709fdc84e6c5b5b8d0bb055895d206ec9 (diff)
downloadCMake-b5f656e0de6e39f0fd935203e0ef2b4231af733d.zip
CMake-b5f656e0de6e39f0fd935203e0ef2b4231af733d.tar.gz
CMake-b5f656e0de6e39f0fd935203e0ef2b4231af733d.tar.bz2
ENH: use the new FIND_PACKAGE_HANDLE_STANDARD_ARGS in some of the FindXXX
modules, remove some of the extra search paths which are also searched by default Alex
Diffstat (limited to 'Modules/FindPythonInterp.cmake')
-rw-r--r--Modules/FindPythonInterp.cmake10
1 files changed, 4 insertions, 6 deletions
diff --git a/Modules/FindPythonInterp.cmake b/Modules/FindPythonInterp.cmake
index 44a932d..9dc097e 100644
--- a/Modules/FindPythonInterp.cmake
+++ b/Modules/FindPythonInterp.cmake
@@ -19,9 +19,7 @@ FIND_PROGRAM(PYTHON_EXECUTABLE
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\1.5\\InstallPath]
)
-SET(PYTHONINTERP_FOUND)
-IF(PYTHON_EXECUTABLE)
- SET(PYTHONINTERP_FOUND ON)
-ENDIF(PYTHON_EXECUTABLE)
-
-
+# handle the QUIETLY and REQUIRED arguments and set PYTHONINTERP_FOUND to TRUE if
+# all listed variables are TRUE
+INCLUDE(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(PythonInterp PYTHON_EXECUTABLE)