Merge branch 'bugfix/idf_as_lib_not_in_top_level' into 'master'

CMake: Fix issue when `idf_build_process` is called from a subdirectory

Closes IDF-1651

See merge request espressif/esp-idf!8722
pull/5452/head
Angus Gratton 2020-06-04 16:51:55 +08:00
commit 7270c921be
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -1,4 +1,3 @@
# idf_build_get_property
#
# @brief Retrieve the value of the specified property related to ESP-IDF build.
@ -126,8 +125,9 @@ endfunction()
# properties used for the processing phase of the build.
#
function(__build_init idf_path)
# Create the build target, to which the ESP-IDF build properties, dependencies are attached to
add_library(__idf_build_target STATIC IMPORTED)
# Create the build target, to which the ESP-IDF build properties, dependencies are attached to.
# Must be global so as to be accessible from any subdirectory in custom projects.
add_library(__idf_build_target STATIC IMPORTED GLOBAL)
set_default(python "python")