Skip to content

Instantly share code, notes, and snippets.

@pmolodo
Created December 9, 2019 19:52
Show Gist options
  • Save pmolodo/2f63254fdb1d0026dfe6f07ecb799ff9 to your computer and use it in GitHub Desktop.
Save pmolodo/2f63254fdb1d0026dfe6f07ecb799ff9 to your computer and use it in GitHub Desktop.
separate_arguments_test.cmake
set(mylist
"first item"
"second-item"
)
message("mylist: ${mylist}")
# mylist: first item;second-item
separate_arguments(mylist_sep WINDOWS_COMMAND "${mylist}")
message("mylist_sep: ${mylist_sep}")
# mylist_sep: first;item\;second-item
message(one two three)
# onetwothree
message("mylist_sep (not quoted): " ${mylist_sep})
# mylist_sep (not quoted): firstitem;second-item
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment