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

Brad King brad.king at kitware.com
Tue Jul 7 09:35:26 EDT 2015


On 07/06/2015 04:47 PM, Daniel Pfeifer wrote:
> OK, now with tests and release notes.

Applied, thanks:

 string: add APPEND subcommand
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=2b18cdca

> There is a debatable edge case:
> When a variable is not-set and zero elements are appended, do we
> expect the result to be a) not-set or b) an empty string?
> My current implementation considers appending zero elements a no-op,
> i.e. it follows approach a).

The list(APPEND) command is a no-op when nothing is given, so
this would be consistent with that.

-Brad



More information about the cmake-developers mailing list