-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmake 3.31 now errors when 3.19 or earlier is requested #1342
Comments
What platform has 3.31? We'll need to look to see what platforms support 3.10 and later. I chose 3.7 back in the early days of the VSG, so probably Kubuntu 16.04 was likely my starting place. |
That's a warning, not an error, so it can be ignored for a while. CMake's been complaining that backwards-compatibility for 3.5 will be removed since 3.27, and they took until 3.31 before they expanded that to cover 3.10 and older. Based on https://gitlab.kitware.com/cmake/cmake/-/merge_requests/9875#note_1577553, they don't have a plan on when support will be dropped for real, so there's no huge rush. As for which platforms have which versions, it's pretty typical for Windows and MacOS users to already be on a close-to-latest version, and have no qualms about updating, so it's only Linux that needs particular attention to the minimum version. It does mean that Windows and MacOS users will have problems if CMake does ever get around to dropping support, though, but so will Arch users, as they're usually not far behind. I typically find Debian's oldest non-EoL LTS version is a good indication of what's a safe minimum, and that's currently Bullseye, which is on 3.18.4. 3.18 is from mid-2020, which is bizarrely new for Debian, so I'm wondering if they've changed their policy since I last did this. Ubuntu 16.04's still under paid support and only has 3.5, but I can't find details on the cmake package for Debian Jessie (their oldest version under paid support) as their public package listing doesn't cover releases that old. As another datapoint, Ubuntu 20.04's still under free support, and has 3.16.3. I guess that instead of looking at a few specific distros, it might be simpler to look at https://pkgs.org/download/cmake and https://pkgs.org/download/cmake3 (some distros still ship CMake 2 as Something that's worth bearing in mind, and that I've said before but will repeat as it's often forgotten, is that |
When configuring VSG (and associated projects like vsgXchange) with cmake version 3.31, The following deprecation error is emitted:
Changing the first line of the
CMakeLists.txt
tocmake_minimum_required(VERSION 3.10)
clears the warning, but there may be a way to still support 3.7 by using the<min>...<max>
specification as suggested - though I did not test that since 3.10 was released on Nov 30, 2018 which is already quite a while ago.The text was updated successfully, but these errors were encountered: