Ensure we don't accidentally find a system python interp on windows
This commit is contained in:
parent
50fd94d35d
commit
713f39ef71
|
@ -73,8 +73,10 @@ if( ${PYTHON_ROOT_DIR} )
|
||||||
PATHS ${PYTHON_ROOT_DIR}
|
PATHS ${PYTHON_ROOT_DIR}
|
||||||
NO_DEFAULT_PATH )
|
NO_DEFAULT_PATH )
|
||||||
else()
|
else()
|
||||||
# If there is no specific path given, look for python in the path
|
if(NOT VCPKG_TOOLCHAIN)
|
||||||
find_program(PYTHON_EXECUTABLE NAMES ${_Python_NAMES})
|
# If there is no specific path given, look for python in the path
|
||||||
|
find_program(PYTHON_EXECUTABLE NAMES ${_Python_NAMES})
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Set up the versions we know about, in the order we will search. Always add
|
# Set up the versions we know about, in the order we will search. Always add
|
||||||
|
|
Loading…
Reference in New Issue