Skip to content
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

Merged
merged 5 commits into from May 3, 2019

Conversation

jgsogo
Copy link
Contributor

@jgsogo jgsogo commented Apr 30, 2019

@ghost ghost assigned jgsogo Apr 30, 2019
@ghost ghost added the stage: review label Apr 30, 2019
@jgsogo jgsogo added this to the 1.15 milestone Apr 30, 2019

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.
Copy link
Contributor

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.

Copy link
Contributor Author

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!

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
Copy link
Contributor

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.

Copy link
Contributor Author

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

@lasote lasote merged commit 02e0c4e into conan-io:develop May 3, 2019
@ghost ghost removed the stage: review label May 3, 2019
@jgsogo jgsogo deleted the pr/4917-compiler-cppstd branch May 3, 2019 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants