diff options
Diffstat (limited to 'Modules/FindPythonInterp.cmake')
-rw-r--r-- | Modules/FindPythonInterp.cmake | 10 |
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) |