summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/add_test/CheckEmptyArgument.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/add_test/CheckEmptyArgument.cmake')
-rw-r--r--Tests/RunCMake/add_test/CheckEmptyArgument.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/RunCMake/add_test/CheckEmptyArgument.cmake b/Tests/RunCMake/add_test/CheckEmptyArgument.cmake
new file mode 100644
index 0000000..9bf7976
--- /dev/null
+++ b/Tests/RunCMake/add_test/CheckEmptyArgument.cmake
@@ -0,0 +1,11 @@
+if (NOT CMAKE_ARGV4 STREQUAL "A")
+ message(FATAL_ERROR "wrong parsing of arguments")
+endif()
+
+if (NOT CMAKE_ARGV5 STREQUAL "")
+ message(FATAL_ERROR "Empty argument was dropped")
+endif()
+
+if (NOT CMAKE_ARGV6 STREQUAL "B")
+ message(FATAL_ERROR "wrong parsing of arguments")
+endif()