CMAKE
-
set version using git describe + cmakedev/etc 2021. 3. 29. 20:51
v2.5-0-gdeadbee ^ ^ ^^ | | | | | | | '-- SHA of HEAD (first seven chars) | | '-- "g" is for git | '---- number of commits since last tag | '--------- last tag stackoverflow.com/a/12368262/3543411 How can I get my C code to automatically print out its Git version hash? Is there an easy way to write C code that can access its Git version hash? I wrote software in C to collect scientific data in a ..