cmake: remove unused function 'listtostrrev'
parent
77025417dd
commit
dfcd8d5835
|
@ -90,27 +90,6 @@ function(listtostr LIST OUTPUT)
|
|||
set(${OUTPUT} "${res}" PARENT_SCOPE)
|
||||
endfunction()
|
||||
|
||||
function(listtostrrev _LIST _OUTPUT)
|
||||
if(${ARGC} EQUAL 3)
|
||||
# prefix for each element
|
||||
set(_LPREFIX ${ARGV2})
|
||||
else()
|
||||
set(_LPREFIX "")
|
||||
endif()
|
||||
# Do not use string(REPLACE ";" " ") here to avoid messing up list
|
||||
# entries
|
||||
set(res)
|
||||
foreach(_ITEM ${${_LIST}})
|
||||
string(SUBSTRING "${_ITEM}" 0 6 start)
|
||||
if(start STREQUAL "SHELL:")
|
||||
string(SUBSTRING "${_ITEM}" 6 -1 _ITEM)
|
||||
endif()
|
||||
set(res "${res} ${_LPREFIX}${_ITEM}")
|
||||
endforeach()
|
||||
string(STRIP "${res}" res)
|
||||
set($_OUTPUT} "${res}" PARENT_SCOPE)
|
||||
endfunction()
|
||||
|
||||
function(find_stringlength_longest_item inList outLength)
|
||||
set(maxLength 0)
|
||||
foreach(item IN LISTS ${inList})
|
||||
|
|
Loading…
Reference in New Issue