mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
build system: quote LD script search paths in target_linker_script
This commit is contained in:
parent
71fc5fa478
commit
83a7ecc7c3
@ -158,9 +158,9 @@ function(target_linker_script target deptype scriptfiles)
|
||||
get_target_property(link_libraries "${target}" LINK_LIBRARIES)
|
||||
endif()
|
||||
|
||||
list(FIND "${link_libraries}" "-L ${search_dir}" found_search_dir)
|
||||
list(FIND "${link_libraries}" "-L \"${search_dir}\"" found_search_dir)
|
||||
if(found_search_dir EQUAL "-1") # not already added as a search path
|
||||
target_link_libraries("${target}" "${deptype}" "-L ${search_dir}")
|
||||
target_link_libraries("${target}" "${deptype}" "-L \"${search_dir}\"")
|
||||
endif()
|
||||
|
||||
target_link_libraries("${target}" "${deptype}" "-T ${scriptname}")
|
||||
|
Loading…
Reference in New Issue
Block a user