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
Docs for compiler.cppstd subsetting #1266
Conversation
howtos/manage_cpp_standard.rst
Outdated
|
||
The setting representing the C++ standard is ``compiler.cppstd``. | ||
The detected default profile doesn't set any value for the ``compiler.cppstd`` setting, but | ||
Conan will use the default for each compiler if no value is provided. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not accurate. Conan won't do anything if no value is specified. But the compiler will use, of course, the default value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's right, and very important!
howtos/manage_cpp_standard.rst
Outdated
By default Conan will detect the default standard of your compiler to not generate different binary packages. | ||
For example, you already built some ``gcc > 6.1`` packages, where the default std is ``gnu14``. | ||
If you introduce the ``cppstd`` setting in your recipes and specify the ``gnu14`` value, Conan won't generate | ||
By default Conan will use the default standard for your compiler, so it won't generate different |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Idem. Not accurate. You can say that when no value is specified, Conan will compute by default the same package_id corresponding to the default std of the compiler, so when you explicit the std value for the default of the compiler, the id will be the same as no specifying it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's right, and very important
Doc for conan-io/conan#4917