[CMake] breaking overly long lines without creating a list?
Daniel Franke
franke.daniel at gmail.com
Thu Nov 19 16:25:33 EST 2009
On Thursday 19 November 2009 09:46:29 Marcel Loose wrote:
> # ----------------------------------------------------------------------
> # join_arguments(var)
> #
> # Join the arguments in the (semi-colon separated) list VAR into one
> # space separated string. The string will be returned in the variable
> # VAR. This command is the opposite of the built-in command
> # separate_arguments().
> # ----------------------------------------------------------------------
> macro(join_arguments var)
> set(_var)
> foreach(_v ${${var}})
> set(_var "${_var} ${_v}")
> endforeach(_v ${${var}})
> string(STRIP ${_var} _var)
> set(${var} ${_var})
> endmacro(join_arguments)
Thanks Marcel.
I'll give it a try.
Daniel
More information about the CMake
mailing list