CMake/Tests/CMakeTests/String-TIMESTAMP-MonthWeekNames.cmake
Ruslan Baratov 751f7b5255 string(TIMESTAMP ...): add '%a' and '%b' format specifiers
%b: Abbreviated month name (e.g. Oct).
%a: Abbreviated weekday name (e.g. Fri).
2016-09-12 19:07:38 +03:00

12 lines
320 B
CMake

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()