What is your problem/feature request?
Microsoft has released Visual Studio 18 2026, so when you go to the downloads page you by default only see listings for the newest version:
https://visualstudio.microsoft.com/downloads/
The first minor inconvenience to those users will be that when running conan install . is that they won't match with any of the binaries in conan center because none of them use 195 which is the version that comes with the new install.
But after that, depending on which packages, used then they may run into an issue that's caused by the fact that the lowest version of cmake that supports the Visual Studio 18 2026 generator is cmake 4.2, which is a new version of cmake which has recently been released.
Specifically the issue arises in any package that has a tool requirement on cmake (any version) will currently fail when trying to be compiled, this is because the highest version of cmake available on conan center is 4.1.2, and it will fail because that version of cmake is less than version 4.2.0 and thus has no idea that Visual Studio 18 exists yet, and so when that package tries to get compiled it will fail out because no such generator exists (well that version thinks so).
Concretely this has already happened, in at least the following two packages that I work with daily:
You will go through conan install . --build=missing and then suddenly be interrupted by a confusing cmake error, which you would then have to go version hunting to figure out why it occurred.
I'm sure there's a workaround where we tell new users to not download this new version of visual studio, but I think there will be an array of programmers who will install visual studio blindly from the site, then install the newest version of cmake, then get conan, go for a conan install . then go for a conan install . --build=missing and then run into this error saying that cmake has no idea that Visual Studio 18 exists, then get confused and either create an issue about this or simply just not be able to make progress with their packages.
Again, to replicate this error just get a freshly installed version of visual studio from the microsoft website, then install the newest version of cmake from their website, and install conan. Then make a new conan project that uses any package that has a tool requirement on cmake. Then try to conan install, you will encounter this problem.
The solution to this would be if we can bump the version of cmake up to 4.2 on conancenter. Packages like opus have a version requirement of this form:
|
self.tool_requires("cmake/[>=3.16 <5]") |
Any packages that have a cmake requirement of this form will be fixed by this bump.
Other packages such as assimp will have a harder time:
|
def build_requirements(self): |
|
if Version(self.version) >= "5.4.0": |
|
self.tool_requires("cmake/[>=3.22 <4]") |
As their version number bounds will have to be modified.
What is your problem/feature request?
Microsoft has released Visual Studio 18 2026, so when you go to the downloads page you by default only see listings for the newest version:
https://visualstudio.microsoft.com/downloads/
The first minor inconvenience to those users will be that when running
conan install .is that they won't match with any of the binaries in conan center because none of them use 195 which is the version that comes with the new install.But after that, depending on which packages, used then they may run into an issue that's caused by the fact that the lowest version of cmake that supports the Visual Studio 18 2026 generator is cmake 4.2, which is a new version of cmake which has recently been released.
Specifically the issue arises in any package that has a tool requirement on cmake (any version) will currently fail when trying to be compiled, this is because the highest version of cmake available on conan center is 4.1.2, and it will fail because that version of cmake is less than version 4.2.0 and thus has no idea that Visual Studio 18 exists yet, and so when that package tries to get compiled it will fail out because no such generator exists (well that version thinks so).
Concretely this has already happened, in at least the following two packages that I work with daily:
You will go through
conan install . --build=missingand then suddenly be interrupted by a confusing cmake error, which you would then have to go version hunting to figure out why it occurred.I'm sure there's a workaround where we tell new users to not download this new version of visual studio, but I think there will be an array of programmers who will install visual studio blindly from the site, then install the newest version of cmake, then get conan, go for a
conan install .then go for aconan install . --build=missingand then run into this error saying that cmake has no idea that Visual Studio 18 exists, then get confused and either create an issue about this or simply just not be able to make progress with their packages.Again, to replicate this error just get a freshly installed version of visual studio from the microsoft website, then install the newest version of cmake from their website, and install conan. Then make a new conan project that uses any package that has a tool requirement on cmake. Then try to conan install, you will encounter this problem.
The solution to this would be if we can bump the version of cmake up to 4.2 on conancenter. Packages like opus have a version requirement of this form:
conan-center-index/recipes/opus/all/conanfile.py
Line 37 in 82da3b0
Any packages that have a cmake requirement of this form will be fixed by this bump.
Other packages such as assimp will have a harder time:
conan-center-index/recipes/assimp/5.x/conanfile.py
Lines 213 to 215 in 82da3b0
As their version number bounds will have to be modified.