8 lines
198 B
CMake
8 lines
198 B
CMake
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()
|