<div dir="ltr"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
COMMAND "${GIT_EXECUTABLE}" describe --always HEAD<br></blockquote><div><br></div><div>git describe is nice way to do it since you can get a monotonic-ish increasing version number</div><div><br></div> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> string(REGEX REPLACE "^.*-(.*)-g.*$" "\\1" MYAPP_VERSION_MICRO "${MYAPP_VERSION}")<br>...<br>
set(MYAPP_VERSION_MICRO "0")<br></blockquote><div><br></div><div>Only tangentially related, CMake commands and functions that deal with version information refer to the 4th component as _TWEAK.</div><div><br></div><div>- Chuck</div><br></div></div>