Git version in cmake
Git version in CMake All applications have versions. The version should somehow be exposed in the application to make it possible to determine which application we are actually running.
I've seen a plenty of variants on how this is achieved, some are good and some are really bad. Since it's such a common thing, I thought I'd show how I usually do it.
I use to let CMake determine the version based on git describe and tags, the benefit's that it is part of the build process (i.
Posted by Marcus Folkesson on Tuesday, November 14, 2023