-
Notifications
You must be signed in to change notification settings - Fork 992
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
Please feedback: Minimum CMake version required #7064
Comments
We stay on the latest at least within 6 months. |
The minimum I use is 3.7 |
We are currently on 3.15, planning to move to 3.17 soon |
Currently using 3.12, planning to move to more recent versions sometime soon |
3.10 (currently the latest officially supported by Android SDK) |
Some of our older Yocto SDKs are on CMake 3.12 so that is the current minimum in our company. |
3.15, planning to move to 3.17 |
3.13 at work, 3.17 at home. The only thing delaying rolling updates is laziness, we have to update several system images which is currently cumbersome to do "just because we wanted". |
CMake 3.9.6 as it is highest version that still supports HP-UX (pls don't judge) |
I am using multiple but recent versions of CMake. The following table contains some examples of "older" distributions and their CMake availbility (on release). The online repositories normally contain newer versions (often seen 3.10. or later e.g. Ubuntu 16.04 repo).
|
Fortunately there are Conan packages with CMake and the cmake website offers static binaries to download. I don't think much consideration should be given to really old dists since there is a easy way to upgrade. |
Generally yes and specifially no :). |
The oldest one I'm using is 3.11 on RHEL 8. Otherwise mostly 3.15. |
CMake 3.11 is the oldest that we use in some builds, because VS 2005 (don't ask...) support was dropped in CMake 3.12. |
We have 3.17 deployed everywhere but except a couple legacy projects in VS2005 (which is stuck at 3.11 as @GrimSqueaker points out). We conan export packages with these binaries (so that their files can be imported) but don't use conan (or CMake) in their build process because it's not due to be invented for a while yet, so the old CMake is just for the test_package. Right now most of our CMakeLists have minimum 3.16, for PCH support. |
We always use latest greatest version of cmake. |
If Conan Center Index can provide prebuild binaries for common distros and a working recipe for all others, there is no need to stay on an old CMake Version. . CMake itself has almost no dependencies to be build, just curl for newer versions. Then it can easily be consumed as a build requirement Conan package, As it's Some newer features which might be helpful: Alias targets of imported targets (3.11), |
Consuming a CMake recipe from within another recipe and starting the consumed CMake variant will not work if conan gets started from CMake initially (see here). The reason is that CMake is already running (e.g. v3.10) and by design cannot just start another CMake instance from a different variant (e.g. v3.16). It may work with some changes to the CMake configuration (like setting CMAKE_ROOT) but I did not manage to make it work without problems until now. |
Having any recent CMake is a 1 line in profile. |
I use the latest version of CMake for personal use, since backwards compatibility is so straight-forward with CMake policies. |
Thanks for the feedback @jwillikers ! I just realized that this issue kept open, while we moved this discussion to the Tribe https://conan.io/tribe.html. in this PR: conan-io/tribe#4 (and there we basically agreed to go for 3.15 as the minimum supported version (Conan can use CMake 3.15 features). Lets continue there, I am closing this one now. |
We are discussing about the new
toolchain()
feature (#5919), and what would be the minimum cmake version that will be required in future Conan 2.0 releases.There are some goodies in latests CMake versions that we are already using in some parts of the toolchain:
We have been supporting back to cmake 2.8.12, and some parts of the generators (targets) require using CMake >= 3.3.
We are defining a minimum required CMake version as a base for future development. Please provide your feedback, why is the CMake version you are using, plans to upgrade if any, and other requirements.
The text was updated successfully, but these errors were encountered: