zeek/auxil/broker/caf/cmake/check-consistency.cmake
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

10 lines
353 B
CMake

execute_process(COMMAND ${CMAKE_COMMAND} -E compare_files
"${file_under_test}" "${generated_file}"
RESULT_VARIABLE result)
if(result EQUAL 0)
# files still in sync
else()
message(SEND_ERROR "${file_under_test} is out of sync! Run target "
"'update-enum-strings' to update automatically")
endif()