From 42bfc5a3e4dd495db96b0ad9f0e4e1bef4ecfa51 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Thu, 30 Aug 2012 09:47:42 +0200 Subject: 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. --- Modules/Qt4Macros.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(READ "${infile}" _RC_FILE_CONTENTS) string(REGEX MATCHALL "]*>" "" _RC_FILE "${_RC_FILE}") -- cgit v0.12