瀏覽代碼

ERR: Blank line regular expression updated to allow whitespace on the line.

Brad King 24 年之前
父節點
當前提交
e318d87aff
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Source/cmSystemTools.cxx

+ 1 - 1
Source/cmSystemTools.cxx

@@ -208,7 +208,7 @@ bool cmSystemTools::ParseFunction(std::ifstream& fin,
   
   
   if(fin.getline(inbuffer, BUFFER_SIZE ) )
   if(fin.getline(inbuffer, BUFFER_SIZE ) )
     {
     {
-    cmRegularExpression blankLine("^$");
+    cmRegularExpression blankLine("^[ \t]*$");
     cmRegularExpression comment("^[ \t]*#.*$");
     cmRegularExpression comment("^[ \t]*#.*$");
     cmRegularExpression oneLiner("^[ \t]*([A-Za-z_0-9]*)[ \t]*\\((.*)\\)[ \t]*$");
     cmRegularExpression oneLiner("^[ \t]*([A-Za-z_0-9]*)[ \t]*\\((.*)\\)[ \t]*$");
     cmRegularExpression multiLine("^[ \t]*([A-Za-z_0-9]*)[ \t]*\\((.*)$");
     cmRegularExpression multiLine("^[ \t]*([A-Za-z_0-9]*)[ \t]*\\((.*)$");