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
it would be nice if CMakeLists.txt could generate a "PACKAGE_BUILD" variable that holds the hash of the current commit, the build date or any other information to differ between different builds
people from #git said you should use "git describe --always --dirty" so a "-dirty" is appended to mark that the source tree had local changes upon compile. I think that's enough to compare versions because changes can either be committed or stashed before compiles.
Activity
kaixiong commentedon Apr 11, 2012
I had wanted to implement this, but wasn't quite sure how to obtain the latest commit hash using git. (Now I know, it's git rev-parse HEAD).
Apparently, lots of people use git describe, but that's limited to tags:
http://stackoverflow.com/questions/1435953/how-can-i-pass-git-sha1-to-compiler-as-definition-using-cmake
rigid commentedon Apr 23, 2012
people from #git said you should use "git describe --always --dirty" so a "-dirty" is appended to mark that the source tree had local changes upon compile. I think that's enough to compare versions because changes can either be committed or stashed before compiles.
Core (Build): Regenerate version.h whenever revision changes (fixes i…
Plugins (gforce): Fix new-delete-type-mismatch
Plugins (gforce): Fix new-delete-type-mismatch
Plugins (corona) : Fix allocation size to fix heap-buffer-overflow
Plugins (corona) : Fix allocation size to fix heap-buffer-overflow
Plugins (corona) : Fix allocation size to fix heap-buffer-overflow
Plugins (corona): Fix allocation size to fix heap-buffer-overflow