Skip to content
  • Brad King's avatar
    Qt4Macros: Fix recently broken resource file parsing · 3553001b
    Brad King authored
    Commit 4be67837 (read less from version headers into variables,
    2012-08-19) switched from file(READ) and string(REGEX MATCHALL) to just
    file(STRINGS) to extract the list of resource <file> entries.  However,
    the latter extracts entire lines that match the regex, not just the part
    that matches the regex, so the subsequent string(REGEX REPLACE) fails to
    match and replace anything.  Return to the original parsing logic but
    replace file(READ) with file(STRINGS) to load a minimal part of the file
    before using string(REGEX MATCHALL) as before.
    3553001b