Browse Source

Merge commit '62297e7da506e767de678c8aab4efdfd2fc38c89' into main

Sam Lantinga 2 năm trước cách đây
mục cha
commit
60cff229c8
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      cmake/macros.cmake

+ 1 - 2
cmake/macros.cmake

@@ -78,8 +78,7 @@ function(listtostr LIST OUTPUT)
   # Do not use string(REPLACE ";" " ") here to avoid messing up list entries
   # Do not use string(REPLACE ";" " ") here to avoid messing up list entries
   set(res)
   set(res)
   foreach(ITEM ${${LIST}})
   foreach(ITEM ${${LIST}})
-    string(SUBSTRING "${ITEM}" 0 6 start)
-    if(start STREQUAL "SHELL:")
+    if(ITEM MATCHES "^SHELL:")
       string(SUBSTRING "${ITEM}" 6 -1 ITEM)
       string(SUBSTRING "${ITEM}" 6 -1 ITEM)
     endif()
     endif()
     if(ITEM)
     if(ITEM)