cmake: add dirty flag to project version when repo is dirty while running cmake
The title says it all.
When looking at the project version of a compilation, this helps to identify that local changes have been made.
As pointed out by @simonspa in a personal conversation, this "mechanism" does not help when applying local changes but not rerunning cmake
but only make
.
Example: