diff --git a/cmake/macros.cmake b/cmake/macros.cmake index a3ed37c62..06df6c6d0 100644 --- a/cmake/macros.cmake +++ b/cmake/macros.cmake @@ -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})