[cmake-developers] PATCH: add subcommand string(APPEND)

Daniel Pfeifer daniel at pfeifer-mail.de
Sat Jul 4 18:27:08 EDT 2015


Attached is a patch that adds a subcommand string(APPEND).
This allows to write

> string(APPEND string_variable "some string")

instead of

> set(string_variable "${string_variable}some string")

Two other patches make use of this subcommand. The changes have been
created with

> find Modules -type f -print0 | xargs -0 perl -i -0pe \
> 's/set\(([a-zA-Z0-9_]+)(\s+)"\$\{\1\}([^"])/string(APPEND \1\2"\3/g'

cheers, Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-add-subcommand-string-APPEND.patch
Type: text/x-patch
Size: 3250 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150705/ea976b95/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Use-string-APPEND-in-Modules.patch
Type: text/x-patch
Size: 92866 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150705/ea976b95/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Use-string-APPEND-in-Tests.patch
Type: text/x-patch
Size: 39681 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150705/ea976b95/attachment-0005.bin>


More information about the cmake-developers mailing list