Kaynağa Gözat

ENH: Also find .moc files if there are spaces between # and include.
Fixes #8433.

Clinton Stimpson 17 yıl önce
ebeveyn
işleme
f9710e22ec
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      Modules/FindQt4.cmake

+ 1 - 1
Modules/FindQt4.cmake

@@ -1131,7 +1131,7 @@ IF (QT4_QMAKE_FOUND)
 
             GET_FILENAME_COMPONENT(_abs_PATH ${_abs_FILE} PATH)
 
-            STRING(REGEX MATCHALL "#include +[^ ]+\\.moc[\">]" _match "${_contents}")
+            STRING(REGEX MATCHALL "# *include +[^ ]+\\.moc[\">]" _match "${_contents}")
             IF(_match)
                FOREACH (_current_MOC_INC ${_match})
                   STRING(REGEX MATCH "[^ <\"]+\\.moc" _current_MOC "${_current_MOC_INC}")