diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2009-01-29 18:26:01 (GMT) |
---|---|---|
committer | Clinton Stimpson <clinton@elemtech.com> | 2009-01-29 18:26:01 (GMT) |
commit | f9710e22ecd91653bc4950918f0e2df5349fcfff (patch) | |
tree | 573dfa4dc2c61b2c684a89819ea76ea9573575a3 /Modules | |
parent | 4b5cabed0e40b7642b515a33568f1701577bb050 (diff) | |
download | CMake-f9710e22ecd91653bc4950918f0e2df5349fcfff.zip CMake-f9710e22ecd91653bc4950918f0e2df5349fcfff.tar.gz CMake-f9710e22ecd91653bc4950918f0e2df5349fcfff.tar.bz2 |
ENH: Also find .moc files if there are spaces between # and include.
Fixes #8433.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindQt4.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake index 8811ec6..16ce845 100644 --- a/Modules/FindQt4.cmake +++ b/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}") |