From bb1b53a49e1c61cdd097d476562539f284d2bbfe Mon Sep 17 00:00:00 2001 From: Axel Isouard Date: Sun, 5 Feb 2017 06:15:21 -0800 Subject: [PATCH] Force 2.7 version for Python, look for it inside the detected depot_tools path --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bdd574b..72a3d1b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,9 +15,9 @@ find_package(Git REQUIRED) find_package(DepotTools REQUIRED) if (WIN32) - set(PYTHON_EXECUTABLE ${CMAKE_SOURCE_DIR}/depot_tools/python.bat) + set(PYTHON_EXECUTABLE ${DEPOTTOOLS_PATH}/python.bat) else (WIN32) - find_package(PythonInterp REQUIRED) + find_package(PythonInterp 2.7 REQUIRED) endif (WIN32) #