|
@@ -78,10 +78,15 @@ function(listtostr LIST OUTPUT)
|
|
|
# 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()
|
|
|
if(ITEM)
|
|
|
set(res "${res} ${LPREFIX}${ITEM}")
|
|
|
endif()
|
|
|
endforeach()
|
|
|
+ string(STRIP "${res}" res)
|
|
|
set(${OUTPUT} "${res}" PARENT_SCOPE)
|
|
|
endfunction()
|
|
|
|
|
@@ -96,8 +101,13 @@ function(listtostrrev _LIST _OUTPUT)
|
|
|
# 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()
|
|
|
|