You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# These functions force a re-configure on each git commit so that you can
# trust the values of the variables in your build system.
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:
Setup
Set up a project with a target that captures the output of git_describe_working_tree
git commit
CMake configure & build. Note the captured version is clean (no -dirty suffix)
False clean detection
Modify a tracked source file. Git worktree status is now dirty.
Build the project
CMake does not automatically (re)configure
Captured version is missing the -dirty suffix
False dirty detection
CMake configure (manually) & build
Captured version now correctly contains the -dirty suffix
git reset --hard. Build again
Captured version still (errantly) contains the -dirty suffix
# These functions force a re-configure on each git commit so that you can
# trust the values of the variables in your build system.
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.
cmake-modules/GetGitRevisionDescription.cmake
Lines 3 to 4 in 1b45049
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)
The text was updated successfully, but these errors were encountered: