From 262323e7409f13af1f9a8a3c6dfd9ab7b49087bd Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Wed, 31 Mar 2021 17:35:42 +1100 Subject: [PATCH] cmake: Set IDFTOOL variable using the correct PYTHON interpreter variable --- tools/cmake/project.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/cmake/project.cmake b/tools/cmake/project.cmake index 297f4713f6..5b14ab4852 100644 --- a/tools/cmake/project.cmake +++ b/tools/cmake/project.cmake @@ -6,9 +6,6 @@ cmake_minimum_required(VERSION 3.5) # call. include(${CMAKE_CURRENT_LIST_DIR}/idf.cmake) -# legacy variable for compatibility -set(IDFTOOL ${PYTHON} "${IDF_PATH}/tools/idf.py") - # setting PYTHON variable here for compatibility only, new code should use # idf_build_get_property(variable PYTHON) idf_build_get_property(PYTHON PYTHON) @@ -16,6 +13,9 @@ if(NOT PYTHON) message(FATAL_ERROR "Internal error, PYTHON build property not set correctly.") endif() +# legacy variable for compatibility +set(IDFTOOL ${PYTHON} "${IDF_PATH}/tools/idf.py") + # On processing, checking Python required modules can be turned off if it was # already checked externally. if(PYTHON_DEPS_CHECKED)