Skip to content

Commit 266f957

Browse files
committed
Fix UTF-8 flag detection regex
Updated the regular expression for detecting the /utf-8 compiler flag to be case-insensitive for each character, ensuring proper detection regardless of case.
1 parent b5f54ce commit 266f957

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sw/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if(MSVC)
2323
# 检查是否已存在/utf-8
2424
if(_opts)
2525
foreach(opt IN LISTS _opts)
26-
if(opt MATCHES "(?i)/utf-8")
26+
if(opt MATCHES "/[Uu][Tt][Ff]-8")
2727
set(_has_utf8 TRUE)
2828
break()
2929
endif()

0 commit comments

Comments
 (0)