CMake/Tests/RunCMake/list/GET-CMP0007-WARN.cmake

8 lines
198 B
CMake
Raw Normal View History

cmake_policy(VERSION 2.4)
2012-09-30 12:44:18 +04:00
set(thelist "" NEW OLD)
list(GET thelist 1 thevalue)
if (NOT thevalue STREQUAL "OLD")
message(SEND_ERROR "returned element '${thevalue}', but expected 'OLD'")
endif()