summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeTests/String-TIMESTAMP-MonthWeekNames.cmake
blob: 1cd44fffffc20b5f21d4410cfc132844a784a6dc (plain)
1
2
3
4
5
6
7
8
9
10
11
string(TIMESTAMP output "%a;%b")
message("~${output}~")

list(LENGTH output output_length)

set(expected_output_length 2)

if(NOT output_length EQUAL ${expected_output_length})
    message(FATAL_ERROR "expected ${expected_output_length} entries in output "
        "with all specifiers; found ${output_length}")
endif()