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
This commit is contained in:
Alexander Neundorf
2007-07-18 13:56:45 -04:00
parent e118a62709
commit b5f656e0de
12 changed files with 73 additions and 172 deletions

View File

@@ -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)