-
Notifications
You must be signed in to change notification settings - Fork 380
languages and cstd support #3757
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
Conversation
| Regarding ``languages`` definition, the following will happen: | ||
| - If no ``languages`` is defined or ``C`` is not a declared language, ``compiler.cstd`` subsetting will be automatically removed | ||
| at package ``configure()`` time (to achieve backward compatibility). |
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.
| at package ``configure()`` time (to achieve backward compatibility). | |
| at package ``configure()`` time (to achieve backward compatibility). | |
| Thus Conan assumes that ``C++`` is the default value for ``languages`` if not overriden by the user. |
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 super accurate, it will not be reported languages = "C++" if it is not defined in any of the places it is reported (json output, dependencies interface, etc), it will be an empty list. So it is not the default value, the default value is an empty list.
| .. note:: | ||
|
|
||
| From Conan 2.4, the above ``configure()`` is not necessary if defined ``languages = "C"`` recipe |
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.
| From Conan 2.4, the above ``configure()`` is not necessary if defined ``languages = "C"`` recipe | |
| From Conan 2.4, the above ``configure()`` is not necessary if defining ``languages = "C"`` as a recipe |
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.
It would be more like in the recipe? Or as a recipe attribute?
Co-authored-by: Rubén Rincón Blanco <[email protected]>
Docs for conan-io/conan#16028