You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
320 B
12 lines
320 B
8 years ago
|
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()
|