summaryrefslogtreecommitdiff
path: root/Tests/CMakeTests/List-Get-CMP0007-Warn.cmake
blob: 0a9264fdc9eb67560488770e9bc6b7c4fc998306 (plain)
1
2
3
4
5
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()