Use CMake to get build-time Subversion revision

With CMake I can get the Subversion revision using Subversion_WC_INFO. However, this only happens at configure time -- every subsequent make will use this cached revision.

I'd like to get the svn revision at build time (ie, every time Make is run). How can I do this?

18
задан Lii 21 September 2018 в 12:12
поделиться