El dilluns, 31 de juliol de 2017, a les 22:45:17 CEST, Albert Astals Cid va escriure: > El dilluns, 31 de juliol de 2017, a les 9:44:17 CEST, David Faure va escriure: > > On lundi 31 juillet 2017 00:01:54 CEST Albert Astals Cid wrote: > > > Anyone has an idea on how to read the version specified in the cmake > > > project() function? > > > > It sets the variable PROJECT_VERSION. > > > > (as well as PROJECT_VERSION_MAJOR, PROJECT_VERSION_MINOR, > > PROJECT_VERSION_PATCH and PROJECT_VERSION_TWEAK) > > These don't seem to be available though cmake -L > > One other option would be calling > cmake --trace-expand > and parsing for > > project(.* VERSION _THE_NUNBER_WE_WANT ) > > maybe that does indeed make more sense. > > Adrián could you update the code to parse for that? > > Patch for okular would be something like https://paste.kde.org/pelj2ugxp
Nobody really complained so I went ahead and added https://community.kde.org/Guidelines_and_HOWTOs/Application_Versioning#Bugzilla_versions We will start doing this for KDE Applications 17.12 Cheers, Albert > > Cheers, > Albert