Created
December 9, 2019 19:52
-
-
Save pmolodo/2f63254fdb1d0026dfe6f07ecb799ff9 to your computer and use it in GitHub Desktop.
separate_arguments_test.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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