Creating bugzilla entries for KDE Applications

Aleix Pol aleixpol at kde.org
Tue Aug 1 01:47:29 UTC 2017


On Mon, Jul 31, 2017 at 10:45 PM, Albert Astals Cid <aacid at kde.org> wrote:
> 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

Alternatively, if the cmake we run it on is new enough we also should
be able to use the cmake server mode (cmake -E server). But we'd have
to configure the project again anyway so there's not much of a
benefit.

Aleix


More information about the release-team mailing list