Closed ruipacheco closed 5 years ago
You can edit the default
profile at ~/.conan/profiles/default
to change the default value.
That file doesn't exist. I suspect conan's compiler detector is broken?
Conan only detects the compiler the first time it runs and generates a profiles/default
file in the Conan user home. So I think the file must be there.
It is indeed. So the check isn't done every time we run conan?
By check I mean detecting the compiler version.
No, only when the file doesn't exist.
This should do also the trick conan profile update settings.compiler.version=16 default
In general, it is not recommended to trust the Conan detection of the default profile, especially for companies we recommend to install the needed profiles with the conan config install
command.
Thanks!
To help us debug your issue please explain:
I've recently uninstalled Visual Studio 2017 and installed 2019 and now I can't build a project that used to work cleanly. The conanfile.py is fairly simple:
But when I try to create the package it defaults the compiler version to 15 and then CMake complains that it can't find Visual Studio 2017. Are these values cached somewhere I'm not aware of? Build output:
The build will work if I pass the correct
compiler.version
flag via the command line, ie, 16.Compiler: Visual Studio 2019 Conan: 1.18.0 OS: Windows 10