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

Projects
None yet
3 participants
@jgsogo
Copy link
Member

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.

This comment has been minimized.

Copy link
@lasote

lasote May 3, 2019

Contributor

Not accurate. Conan won't do anything if no value is specified. But the compiler will use, of course, the default value.

This comment has been minimized.

Copy link
@jgsogo

jgsogo May 3, 2019

Author Member

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

This comment has been minimized.

Copy link
@lasote

lasote May 3, 2019

Contributor

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.

This comment has been minimized.

Copy link
@jgsogo

jgsogo May 3, 2019

Author Member

That's right, and very important

@lasote lasote merged commit 02e0c4e into conan-io:develop May 3, 2019

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
license/cla Contributor License Agreement is signed.
Details

@ghost ghost removed the stage: review label May 3, 2019

@jgsogo jgsogo deleted the jgsogo:pr/4917-compiler-cppstd branch May 3, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.