cmake/Tests/CMakeTests/String-TIMESTAMP-MonthWeekNames.cmake

12 lines
320 B
CMake
Raw Normal View History

2016-10-30 18:24:19 +01:00
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()