-
Notifications
You must be signed in to change notification settings - Fork 980
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
[bug] Conan generate the wrong CMake Presets when building for MSVC 194 #17115
Comments
I am not fully sure if the issue is There is also a relate MR in CMake: VS: Fix '-T version=14.4x' under VS 17.1x Looking at Looking at
Indeed in
|
Hi @elvisdukaj I think the problem is that the compiler version 194, with toolset version 14.4 uses the toolset platform v143, so this looks correct in that regard. the problem could be that you are not calling the generated |
@memsharded thank you for the reply. I am still a bit puzzled: I never called the The fact that CLion fails to configure cmake because of the preset could be a bug CLion side than. Thank you for following up. For reference I am posting the full profile I used:
I have similar results also when using "Visual Studio 17 2022" as cmake generator. |
It depends on how you use it. If you do it via What is exactly the full failure? |
Describe the bug
After updating Visual Studio my conan projects based on Conan broke during the building because the Visual C++ runtime was not found. The new Visual C++ toolset is v194 but when calling conan install the generated CMakePreset.json still refers to the older toolchain:
Trying to call cmake with the preset results in the following error:
In CLion, instead the fails to load the cmake configuration because is passing
-vcvars_ver=14.3
instead ofvcvarsall.bat" amd64 -vcvars_ver=14.4
On CLion, if I manually changing the toolset value in the generated cmake user preset to
v194
, the configuration works again. This is not true when callingcmake --preset conan-release
.How to reproduce it
Install the latest Visual C++ toolchain (
_MSC_VER 1941
) coming with Visual Studio 17.11.4.Use the following profile:
Create a project with
conan new cmake_exe -d name=msvc194 -d version=1
Call conan install:
conan install . -s compiler.version=194
Calling cmake with the preset:
cmake --preset conan-release
The text was updated successfully, but these errors were encountered: