tibirna / qgit

Official git repository for QGit.
Other
171 stars 66 forks source link

CMake: Address warning about compatibility with CMake 2.x.x #117

Closed hartwork closed 2 years ago

hartwork commented 2 years ago

@tibirna just an idea, with a rather conservative new version value for a start (see below), happy to discuss.

Warnings was:

CMake Deprecation Warning at CMakeLists.txt:8 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake.

Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

CMake in the wild is at:

Debian oldstable/buster 3.13.4-1
Debian stable/bullseye  3.18.4-2
Gentoo stable           3.20.5
Gentoo unstable         3.21.2
Ubuntu 18.04LTS/bionic  3.10.2-1ubuntu2
Ubuntu 20.04LTS/focal   3.16.3-1ubuntu1
Ubuntu 21.04/hirsute    3.18.4-2ubuntu1