diff --git a/tools/cmake/project.cmake b/tools/cmake/project.cmake index a18655b2a6..3283a6d367 100644 --- a/tools/cmake/project.cmake +++ b/tools/cmake/project.cmake @@ -10,6 +10,7 @@ set(IDFTOOL ${PYTHON} "${IDF_PATH}/tools/idf.py") # Internally, the Python interpreter is already set to 'python'. Re-set here # to be absolutely sure. set_default(PYTHON "python") +file(TO_CMAKE_PATH ${PYTHON} PYTHON) idf_build_set_property(PYTHON ${PYTHON}) # On processing, checking Python required modules can be turned off if it was diff --git a/tools/cmake/scripts/component_get_requirements.cmake b/tools/cmake/scripts/component_get_requirements.cmake index 3b3bca04d8..d4e59df364 100644 --- a/tools/cmake/scripts/component_get_requirements.cmake +++ b/tools/cmake/scripts/component_get_requirements.cmake @@ -1,4 +1,5 @@ -cmake_minimum_required(VERSION 3.5) +# if(IN_LIST) is used, which requires CMP0057 set to NEW +cmake_policy(SET CMP0057 NEW) include("${BUILD_PROPERTIES_FILE}") include("${COMPONENT_PROPERTIES_FILE}")