summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/list/GET-CMP0007-WARN.cmake
blob: 833f3520489146d54986bab19c38c9f5bb7b76f8 (plain)
1
2
3
4
5
6
7
cmake_policy(VERSION 2.4)
set(thelist "" NEW OLD)

list(GET thelist 1 thevalue)
if (NOT thevalue STREQUAL "OLD")
    message(SEND_ERROR "returned element '${thevalue}', but expected 'OLD'")
endif()