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
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake