[CMake] QT4_ADD_RESOURCES fails to find dependencies in resource-files with aliases

Alexander Neundorf a.neundorf-work at gmx.net
Thu Feb 8 05:31:15 EST 2007


-------- Original-Nachricht --------
Datum: Wed, 07 Feb 2007 23:50:37 +0100
Von: "Michael G. Hansen" <mikeml2 at pfna.de>
An: cmake at cmake.org
CC: 
Betreff: [CMake] QT4_ADD_RESOURCES fails to find dependencies in resource-files with aliases

> Hi,
> 
> I am using aliases in my Qt-resource-files like this:
> <file alias="somefile.ext">filename/on/disk.ext</file>
> 
> This prevents QT4_ADD_RESOURCES from finding the dependency on
> "filename/on/disk.ext" because the regular expression used for this does
> not expect the alias-parameter. I tried to create a new regular
> expression which works with the alias-parameter:
> 
> FindQt4.cmake from CMake 2.4-patch 5, line 783:
> STRING(REGEX MATCHALL "<file( alias=\"[^\"]*\")?>[^<]*" _RC_FILES
> "${_RC_FILE_CONTENTS}")
> 
> and line 786:
> STRING(REGEX REPLACE "^<file( alias=\"[^\"]*\")?>" "" _RC_FILE
> "${_RC_FILE}")
> 
> I am not that experienced with regular expressions, so maybe somebody
> could check them first (they do work for my test-cases, though).

I think the version from current cvs should already contain a fix:
http://www.cmake.org/cgi-bin/viewcvs.cgi/Modules/FindQt4.cmake?rev=1.66&root=CMake&view=log

Bye
Alex

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer


More information about the CMake mailing list