Open bmcdonnell-fb opened 2 months ago
Where/how is that implemented?
It seems that the quoted comment is not true. I CMake configure and build my project, then make a small change to a source file, commit it, and build again. It does not trigger a new CMake configure.
https://github.com/rpavlik/cmake-modules/blob/1b450496c5d11fdcad8b000843d0c516e1eaa59f/GetGitRevisionDescription.cmake#L3-L4
Where/how is that implemented?
It is insufficient to cause the
git_describe_working_tree
function to reliably generate (or not generate) the-dirty
suffix. Ideally, it should also force a reconfigure when the git working tree status toggles between dirty/clean. (Or when such status has changed since the last cmake configure.)To observe:
git_describe_working_tree
git commit
-dirty
suffix)-dirty
suffix-dirty
suffixgit reset --hard
. Build again-dirty
suffix@rpavlik, @dawid-aurobit (contributor of #41)