[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-release-team
Subject:    Re: Creating bugzilla entries for KDE Applications
From:       Aleix Pol <aleixpol () kde ! org>
Date:       2017-08-01 1:47:29
Message-ID: CACcA1RrmarEukYCUMcR1RM6jaDW2jGuuSjXHjQ3HUPcKx1VrUw () mail ! gmail ! com
[Download RAW message or body]

On Mon, Jul 31, 2017 at 10:45 PM, Albert Astals Cid <aacid@kde.org> wrote:
> El dilluns, 31 de juliol de 2017, a les 9:44:17 CEST, David Faure va escr=
iure:
>> 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=C3=A1n 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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic