cmake: add git revision updating for gen_version.h