cmake: add comment that IDF build target must be global

This commit is contained in:
Renz Christian Bagaporo
2020-05-18 16:38:07 +08:00
parent a0f3f1e0cb
commit ba579d66ba

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,7 +125,8 @@ 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.
# Must be global so as to be accessible from any subdirectory in custom projects.
add_library(__idf_build_target STATIC IMPORTED GLOBAL) add_library(__idf_build_target STATIC IMPORTED GLOBAL)
set_default(python "python") set_default(python "python")