mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
cmake: use target_link_options and _directories supported since 3.13
Now that the supported CMake version is >=3.16, this code can be simplified. The code to deduplicate the directories can be removed since this is handled by target_link_directories.
This commit is contained in:
@@ -39,7 +39,7 @@ if(CONFIG_ESP32_WIFI_ENABLED)
|
||||
idf_build_get_property(build_dir BUILD_DIR)
|
||||
|
||||
set(target_name "${idf_target}")
|
||||
target_link_libraries(${COMPONENT_LIB} PUBLIC "-L \"${CMAKE_CURRENT_SOURCE_DIR}/lib/${target_name}\"")
|
||||
target_link_directories(${COMPONENT_LIB} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/lib/${target_name}")
|
||||
|
||||
if(link_binary_libs)
|
||||
if(CONFIG_IDF_TARGET_ESP32C2)
|
||||
|
||||
Reference in New Issue
Block a user