It is not ideal because you need to run cmake --build twice to pick up changes on the commit/tag, etc. This is because it is consumed via configure_file
Potential alternatives:
- Allow to provide a custom
file(WRITE) script/function or other way to write the commit metadata at build time instead of configure time