summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/separate_arguments/UnixCommand.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/separate_arguments/UnixCommand.cmake')
-rw-r--r--Tests/RunCMake/separate_arguments/UnixCommand.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/separate_arguments/UnixCommand.cmake b/Tests/RunCMake/separate_arguments/UnixCommand.cmake
index 0b5767a..c56cd63 100644
--- a/Tests/RunCMake/separate_arguments/UnixCommand.cmake
+++ b/Tests/RunCMake/separate_arguments/UnixCommand.cmake
@@ -6,3 +6,8 @@ if(NOT "${unix_out}" STREQUAL "${unix_exp}")
message(FATAL_ERROR "separate_arguments unix-style failed. "
"Expected\n [${unix_exp}]\nbut got\n [${unix_out}]\n")
endif()
+
+separate_arguments(empty_out UNIX_COMMAND)
+if(NOT empty_out STREQUAL "")
+ message(FATAL_ERROR "separate_arguments unix-style failed on no arguments")
+endif()