List-Get-CMP0007-Warn.cmake 172 B

123456
  1. set(thelist "" NEW OLD)
  2. list(GET thelist 1 thevalue)
  3. if (NOT thevalue STREQUAL "OLD")
  4. message(SEND_ERROR "returned element '${thevalue}', but expected 'OLD'")
  5. endif()