Re: Consistent CMake requirements in Plasma

2021-02-09 Thread Vlad Zahorodnii

On 2/9/21 8:32 PM, Nicolas Fella wrote:

Hi,

while I was doing some cmake cleanup in Plasma I noticed that our stated
minimum cmake versions are both somewhat inconsistent and super old.
Most Plasma projects state that either 2.8 (released in 2009) or 3.0
(released in 2014) are the minimum. That's obviously unrealistic.

Newer cmake versions offer some nice stuff such as imported targets for
common libs (e.g. used in
https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/336). For
the sake of consistency I propose that we standardize Plasma on
something recent-ish.

My candidate for this would be cmake 3.16. It's the version shipped by
Ubuntu 20.04 and thus Neon. This would exclude Debian stable which ships
3.13 (which does not have the feature relevant for
https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/336).


+1

Cheers,
Vlad


Thoughts?

Cheers

Nico





Re: Consistent CMake requirements in Plasma

2021-02-09 Thread Aleix Pol
On Tue, Feb 9, 2021 at 7:32 PM Nicolas Fella  wrote:
>
> Hi,
>
> while I was doing some cmake cleanup in Plasma I noticed that our stated
> minimum cmake versions are both somewhat inconsistent and super old.
> Most Plasma projects state that either 2.8 (released in 2009) or 3.0
> (released in 2014) are the minimum. That's obviously unrealistic.
>
> Newer cmake versions offer some nice stuff such as imported targets for
> common libs (e.g. used in
> https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/336). For
> the sake of consistency I propose that we standardize Plasma on
> something recent-ish.
>
> My candidate for this would be cmake 3.16. It's the version shipped by
> Ubuntu 20.04 and thus Neon. This would exclude Debian stable which ships
> 3.13 (which does not have the feature relevant for
> https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/336).

+1

Debian stable ships 5.11 (yay stability!!!) so it's sadly not like
anyone will develop Plasma 5.22 there :/.

Aleix


Consistent CMake requirements in Plasma

2021-02-09 Thread Nicolas Fella

Hi,

while I was doing some cmake cleanup in Plasma I noticed that our stated
minimum cmake versions are both somewhat inconsistent and super old.
Most Plasma projects state that either 2.8 (released in 2009) or 3.0
(released in 2014) are the minimum. That's obviously unrealistic.

Newer cmake versions offer some nice stuff such as imported targets for
common libs (e.g. used in
https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/336). For
the sake of consistency I propose that we standardize Plasma on
something recent-ish.

My candidate for this would be cmake 3.16. It's the version shipped by
Ubuntu 20.04 and thus Neon. This would exclude Debian stable which ships
3.13 (which does not have the feature relevant for
https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/336).

Thoughts?

Cheers

Nico