[CMake] PROTECTED_AT: double encoding in CPack?

Ian Monroe ian at monroe.nu
Mon Mar 3 13:14:41 EST 2014


On Fri, Feb 28, 2014 at 5:27 PM, Ian Monroe <ian at monroe.nu> wrote:
> I'm getting errors like:
> error: File not found:
> /home/ian/atlassian/quipchat-installer/build64/quipchat-prefix/src/quipchat-build/_CPack_Packages/Linux/RPM/hipchat-2.1.60090-Linux/opt/HipChat/lib/QtQuick/Controls/Styles/Base/images/arrow-up at PROTECTED_AT@2x.png
>
> When generating an RPM with CPack.  Which is true, that file doesn't exist,
> the filename is actually arrow-up at 2x.png.
>
>
> I found this bug:
> http://public.kitware.com/Bug/view.php?id=14063
> Which seems to have introduced this PROTECTED_AT. Don't really understand
> how that patch was supposed to work. :)
>
> I'm building on Debian 7, which has RPM 4.11.1. Appears to be new enough.

Reverting the commit resolved the issue for me. It looks like the
patch was written under the assumption that configure_file processes
@var@'s recursively, so if a @var@ expands to a string with more
@var@'s those get processed as well. But that doesn't appear to be the
case.

Ian


More information about the CMake mailing list