mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user