mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
22 lines
515 B
CMake
22 lines
515 B
CMake
|
|
cmake_minimum_required(VERSION 4.2...4.3)
|
|
|
|
include ("${RunCMake_SOURCE_DIR}/check_errors.cmake")
|
|
unset (errors)
|
|
|
|
string(LENGTH "abc" reference)
|
|
set(output "$<STRING:LENGTH,abc>")
|
|
if (NOT output STREQUAL reference)
|
|
list (APPEND errors "<STRING:LENGTH,abc> returns bad data: ${output}")
|
|
endif()
|
|
|
|
|
|
string(LENGTH "" reference)
|
|
set(output "$<STRING:LENGTH,>")
|
|
if (NOT output STREQUAL reference)
|
|
list (APPEND errors "<STRING:LENGTH,> returns bad data: ${output}")
|
|
endif()
|
|
|
|
|
|
check_errors("STRING:LENGTH" ${errors})
|