https://github.com/Kitware/CMake
Raw File
Tip revision: adf5f253ec029aec4ee7aadb95c6f908030fb98b authored by Brad King on 04 November 2016, 12:30:22 UTC
CMake 3.7.0-rc3
Tip revision: adf5f25
String-TIMESTAMP-MonthWeekNames.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()
back to top