Volker Krause wrote: >> My idea would be something like that >> >> ECM_GET_VCS_VERSION( [DIRECTORY source_dir] ) >> >> Check in the directory for a .git dir -> git checkout -> try git svn info >> -> try some git log >> Check in the directory for a .svn dir -> try svn whatever >> Else: No version > > Sounds good, I hate copy/pasting this code all over the place (I also need > it in work projects) :) >
What do people think about trying to get stuff upstream to cmake before putting it in ecm? This vcs macro stuff looks universally useful. _______________________________________________ Kde-buildsystem mailing list [email protected] https://mail.kde.org/mailman/listinfo/kde-buildsystem
