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