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
This commit is contained in:
Angus Gratton 2020-06-04 16:51:55 +08:00
commit 7270c921be

View File

@ -1,4 +1,3 @@
# idf_build_get_property # idf_build_get_property
# #
# @brief Retrieve the value of the specified property related to ESP-IDF build. # @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. # properties used for the processing phase of the build.
# #
function(__build_init idf_path) function(__build_init idf_path)
# Create the build target, to which the ESP-IDF build properties, dependencies are attached to # Create the build target, to which the ESP-IDF build properties, dependencies are attached to.
add_library(__idf_build_target STATIC IMPORTED) # 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") set_default(python "python")