mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 12:49:36 -06:00
9 lines
394 B
CMake
9 lines
394 B
CMake
set(windows_cmd "a \"b c\" 'd e' \";\" \\ \"c:\\windows\\path\\\\\" \\\"")
|
|
set(windows_exp "a;b c;'d;e';\;;\\;c:\\windows\\path\\;\"")
|
|
separate_arguments(windows_out WINDOWS_COMMAND "${windows_cmd}")
|
|
|
|
if(NOT "${windows_out}" STREQUAL "${windows_exp}")
|
|
message(FATAL_ERROR "separate_arguments windows-style failed. "
|
|
"Expected\n [${windows_exp}]\nbut got\n [${windows_out}]\n")
|
|
endif()
|