I am trying to integrate gitlab-ci and cmake more tightly. I would like to be able to easily extract the project version (semver based) easily.
I think the modern approach today is store the version in a separate JSON file, so that it can be easily parsed from both cmake (string+JSON) and JSON CLI (gitlab-ci script using
Is anyone else using this approach ? I’d appreciate existing solution if possible, thanks ! In case this is important I am have a toplevel