mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
fix(build): fix passing CMAKE_<LANG>_FLAGS from ExternalProject_Add
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
# Remove duplicates from a string containing compilation flags
|
||||
function(remove_duplicated_flags FLAGS UNIQFLAGS)
|
||||
set(FLAGS_LIST "${FLAGS}")
|
||||
# Remove leading and trailing spaces
|
||||
string(STRIP "${FLAGS_LIST}" FLAGS_LIST)
|
||||
# Convert the given flags, as a string, into a CMake list type
|
||||
separate_arguments(FLAGS_LIST)
|
||||
# Remove all the duplicated flags
|
||||
|
||||
Reference in New Issue
Block a user