Parse command-line arguments into a semicolon-separated list.
separate_arguments(<variable> <mode> <args>)
Parses a space-separated string <args> into a list of items, and stores this list in semicolon-separated standard form in <variable>.
This function is intended for parsing command-line arguments. The entire command line must be passed as one string in the argument <args>.
The exact parsing rules depend on the operating system. They are specified by the <mode> argument which must be one of the following keywords:
UNIX_COMMAND \" is "); there are no special escapes (\n is just n).WINDOWS_COMMAND NATIVE_COMMAND WINDOWS_COMMAND mode if the host system is Windows. Otherwise proceeds as in UNIX_COMMAND mode.separate_arguments(<var>)
Convert the value of <var> to a semi-colon separated list. All spaces are replaced with ‘;’. This helps with generating command lines.
© 2000–2019 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.15/command/separate_arguments.html