Force 2.7 version for Python, look for it inside the detected depot_tools path

This commit is contained in:
Axel Isouard 2017-02-05 06:15:21 -08:00
parent 29b4333904
commit bb1b53a49e
No known key found for this signature in database
GPG key ID: D30914735883C824

View file

@ -15,9 +15,9 @@ find_package(Git REQUIRED)
find_package(DepotTools REQUIRED) find_package(DepotTools REQUIRED)
if (WIN32) if (WIN32)
set(PYTHON_EXECUTABLE ${CMAKE_SOURCE_DIR}/depot_tools/python.bat) set(PYTHON_EXECUTABLE ${DEPOTTOOLS_PATH}/python.bat)
else (WIN32) else (WIN32)
find_package(PythonInterp REQUIRED) find_package(PythonInterp 2.7 REQUIRED)
endif (WIN32) endif (WIN32)
# #