diff options
author | Stephen Kelly <steveire@gmail.com> | 2012-08-30 07:47:42 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2012-08-30 07:47:42 (GMT) |
commit | 42bfc5a3e4dd495db96b0ad9f0e4e1bef4ecfa51 (patch) | |
tree | fdf8859cc53cc9554d9405f9d1b78a1275e641a6 /Modules/Qt4Macros.cmake | |
parent | 3553001bcc425dfb5d84a2dc8d657fe92c007962 (diff) | |
download | CMake-42bfc5a3e4dd495db96b0ad9f0e4e1bef4ecfa51.zip CMake-42bfc5a3e4dd495db96b0ad9f0e4e1bef4ecfa51.tar.gz CMake-42bfc5a3e4dd495db96b0ad9f0e4e1bef4ecfa51.tar.bz2 |
Read entire Qt4 qrc file when parsing for depends info.
The qrc file is an xml file, not line based, so the entire 'interesting'
content to parse is not necessarily found by STRINGS and a regexp.
Diffstat (limited to 'Modules/Qt4Macros.cmake')
-rw-r--r-- | Modules/Qt4Macros.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Qt4Macros.cmake b/Modules/Qt4Macros.cmake index 6cf16fd..b52dde8 100644 --- a/Modules/Qt4Macros.cmake +++ b/Modules/Qt4Macros.cmake @@ -187,7 +187,7 @@ macro (QT4_ADD_RESOURCES outfiles ) if(EXISTS "${infile}") # parse file for dependencies # all files are absolute paths or relative to the location of the qrc file - file(STRINGS "${infile}" _RC_FILE_CONTENTS REGEX "<file[^>]*>[^<]+") + file(READ "${infile}" _RC_FILE_CONTENTS) string(REGEX MATCHALL "<file[^<]+" _RC_FILES "${_RC_FILE_CONTENTS}") foreach(_RC_FILE ${_RC_FILES}) string(REGEX REPLACE "^<file[^>]*>" "" _RC_FILE "${_RC_FILE}") |