File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -41,17 +41,12 @@ if(link_binary_libs)
41
41
set (blobs coexist core espnow mesh net80211 pp rtc smartconfig ${phy} )
42
42
43
43
foreach (blob ${blobs} )
44
- add_library (${blob} STATIC IMPORTED )
45
- set_property (TARGET ${blob} PROPERTY IMPORTED_LOCATION ${CMAKE_CURRENT_SOURCE_DIR} /lib/${target_name}/lib${blob}.a )
44
+ add_prebuilt_library (${blob} "${CMAKE_CURRENT_SOURCE_DIR} /lib/${target_name} /lib${blob} .a"
45
+ REQUIRES ${COMPONENT_NAME} )
46
+ set (blob_reqs ${blobs} )
47
+ list (REMOVE_ITEM blob_reqs ${blob} ) # remove itself from requirements
48
+ set_property (TARGET ${blob} APPEND PROPERTY INTERFACE_LINK_LIBRARIES ${blob_reqs} )
46
49
target_link_libraries (${COMPONENT_LIB} PUBLIC ${blob} )
47
-
48
- foreach (_blob ${blobs} )
49
- if (NOT _blob STREQUAL ${blob} )
50
- set_property (TARGET ${blob} APPEND PROPERTY INTERFACE_LINK_LIBRARIES ${_blob} )
51
- endif ()
52
- endforeach ()
53
-
54
- set_property (TARGET ${blob} APPEND PROPERTY INTERFACE_LINK_LIBRARIES ${COMPONENT_LIB} )
55
50
endforeach ()
56
51
endif ()
57
52
You can’t perform that action at this time.
0 commit comments