diff options
author | Brad King <brad.king@kitware.com> | 2020-10-19 14:25:30 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-10-19 14:26:31 (GMT) |
commit | bd080f64bacf781b1287e1d381139e52fd30075f (patch) | |
tree | 0bef1b9f683260dc147f65abec911ebea3aabb50 /Tests/RunCMake/separate_arguments/WindowsCommand.cmake | |
parent | 91cc2f1eedb7c1c83f81b551768b8420d00fcd66 (diff) | |
parent | 747f80fe82b6045fca006ece601b2189bc547aac (diff) | |
download | CMake-bd080f64bacf781b1287e1d381139e52fd30075f.zip CMake-bd080f64bacf781b1287e1d381139e52fd30075f.tar.gz CMake-bd080f64bacf781b1287e1d381139e52fd30075f.tar.bz2 |
Merge topic 'separate_arguments-no-args'
747f80fe82 separate_arguments: Fix crash on *_COMMAND with no arguments
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5382
Diffstat (limited to 'Tests/RunCMake/separate_arguments/WindowsCommand.cmake')
-rw-r--r-- | Tests/RunCMake/separate_arguments/WindowsCommand.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/separate_arguments/WindowsCommand.cmake b/Tests/RunCMake/separate_arguments/WindowsCommand.cmake index 86aa14a..cd07494 100644 --- a/Tests/RunCMake/separate_arguments/WindowsCommand.cmake +++ b/Tests/RunCMake/separate_arguments/WindowsCommand.cmake @@ -6,3 +6,8 @@ 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() + +separate_arguments(empty_out WINDOWS_COMMAND) +if(NOT empty_out STREQUAL "") + message(FATAL_ERROR "separate_arguments windows-style failed on no arguments") +endif() |