mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Move failure cases from the CMake.{If,List,While,GetProperty} tests over
to the RunCMake.{if,list,while,get_property} tests to use the more
modern infrastructure. This also avoids using REGEX_ESCAPE_STRING to
try to regex-match full paths.
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()
|