You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All recent major IDEs (VS, XCode, Clion) pass the default IDE c++ language standard settings (-std=c++<...>) to the compiler. According Conan will detect the default language standard of compiler, if the compiler.cppstd option not set. But it will detect the default compiler mode only, what is not very useful.
Hi! There are many people using Conan and the compiler in the command line... and many CIs, I'm afraid we cannot change this default (sure we cannot do it in Conan 1.x, it will break behavior) and IMHO it wouldn't be a good idea. Anyway, the default is just the value chosen in the autodetect process and written to the file <cache>/profiles/default, you can change that profile and then your default will be different.
In Conan 2.0 (not 100% decided yet, but) it is likely we will stop auto-detecting automatically the default profile and it will be an explicit operation requiring confirmation by the user. So this should no longer be an issue.
Closing as solved in Conan 2, in which conan profile detect must be run before being able to use Conan, which properly shows the detected configuration. Note that also recent improvements over the way profiles are handled (They are Jinja templates now) and the addition of the detect_api to be used within the profiles leaves lots of customization for power users :)
All recent major IDEs (VS, XCode, Clion) pass the default IDE c++ language standard settings (-std=c++<...>) to the compiler. According Conan will detect the default language standard of compiler, if the compiler.cppstd option not set. But it will detect the default compiler mode only, what is not very useful.
@SSE4
Please follow conan-io/conan-center-index#3977
Visual Studio 2019 (default /std:c++14)
https://docs.microsoft.com/de-de/cpp/build/reference/std-specify-language-standard-version?view=msvc-160
XCode 12 (default /std:c++14)
(man clang )
Clion 2020 (default /std:c++14)
vs.
C++98 (C++03) compiler defaults
https://gist.github.com/ax3l/53db9fa8a4f4c21ecc5c4100c0d93c94
The text was updated successfully, but these errors were encountered: