Merge commit '62297e7da506e767de678c8aab4efdfd2fc38c89' into main

main
Sam Lantinga 2023-01-10 10:18:08 -08:00
commit 60cff229c8
1 changed files with 1 additions and 2 deletions

View File

@ -78,8 +78,7 @@ 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:")
if(ITEM MATCHES "^SHELL:")
string(SUBSTRING "${ITEM}" 6 -1 ITEM)
endif()
if(ITEM)