From b57134d21eee90cedbf44711f0b6c30402f84615 Mon Sep 17 00:00:00 2001 From: Amit Sheth Date: Wed, 4 Dec 2019 18:43:48 +0530 Subject: [PATCH] project_include.cmake: Make esptool_py_custom_target callable from other directories --- components/esptool_py/project_include.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esptool_py/project_include.cmake b/components/esptool_py/project_include.cmake index 4a43cac80..300bdf940 100644 --- a/components/esptool_py/project_include.cmake +++ b/components/esptool_py/project_include.cmake @@ -52,7 +52,7 @@ function(esptool_py_custom_target target_name flasher_filename dependencies) -D ESPTOOLPY="${ESPTOOLPY}" -D ESPTOOL_ARGS="write_flash;@flash_${flasher_filename}_args" -D ESPTOOL_WORKING_DIR="${CMAKE_CURRENT_BINARY_DIR}" - -P run_esptool.cmake + -P ${IDF_PATH}/components/esptool_py/run_esptool.cmake WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR} USES_TERMINAL )