瀏覽代碼

Merge commit '62297e7da506e767de678c8aab4efdfd2fc38c89' into main

Sam Lantinga 2 年之前
父節點
當前提交
60cff229c8
共有 1 個文件被更改,包括 1 次插入2 次删除
  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
   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)