String-TIMESTAMP-MonthWeekNames.cmake 320 B

1234567891011
  1. string(TIMESTAMP output "%a;%b")
  2. message("~${output}~")
  3. list(LENGTH output output_length)
  4. set(expected_output_length 2)
  5. if(NOT output_length EQUAL ${expected_output_length})
  6. message(FATAL_ERROR "expected ${expected_output_length} entries in output "
  7. "with all specifiers; found ${output_length}")
  8. endif()