cmake: Call check_python_dependencies.py from idf.py & cmake

This commit is contained in:
Angus Gratton
2018-09-03 18:24:17 +08:00
committed by Angus Gratton
parent 38c0626090
commit 6fa52ca8fe
2 changed files with 24 additions and 1 deletions

View File

@@ -29,6 +29,15 @@ include(idf_functions)
set_default(PYTHON "python")
if(NOT PYTHON_DEPS_CHECKED AND NOT BOOTLOADER_BUILD)
message(STATUS "Checking Python dependencies...")
execute_process(COMMAND "${PYTHON}" "${IDF_PATH}/tools/check_python_dependencies.py"
RESULT_VARIABLE result)
if(NOT result EQUAL 0)
message(FATAL_ERROR "Some Python dependencies must be installed. Check above message for details.")
endif()
endif()
# project
#
# This macro wraps the cmake 'project' command to add