diff options
Diffstat (limited to 'Tests/CMakeTests/List-Get-CMP0007-Warn.cmake')
-rw-r--r-- | Tests/CMakeTests/List-Get-CMP0007-Warn.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/CMakeTests/List-Get-CMP0007-Warn.cmake b/Tests/CMakeTests/List-Get-CMP0007-Warn.cmake new file mode 100644 index 0000000..0a9264f --- /dev/null +++ b/Tests/CMakeTests/List-Get-CMP0007-Warn.cmake @@ -0,0 +1,6 @@ +set(thelist "" NEW OLD) + +list(GET thelist 1 thevalue) +if (NOT thevalue STREQUAL "OLD") + message(SEND_ERROR "returned element '${thevalue}', but expected 'OLD'") +endif() |