Skip to content

Conversation

@memsharded
Copy link
Member

@memsharded memsharded added this to the 2.4.0 milestone Jun 4, 2024
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).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

Copy link
Member Author

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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

Copy link
Member Author

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?

@czoido czoido merged commit 3a934a2 into conan-io:develop2 Jun 5, 2024
@memsharded memsharded deleted the feature/languages branch June 5, 2024 09:32
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.

3 participants