cmake/Tests/RunCMake/add_test/CheckEmptyArgument.cmake

12 lines
283 B
CMake
Raw Normal View History

2023-07-02 19:51:09 +02:00
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()