-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[question] How to handle the Standard version requirement in recipes? #54
Comments
We already have the mechanism to hash packages with aligned default standard versions with the same value: https://docs.conan.io/en/latest/reference/conanfile/methods.html#self-info-default-std-matching-self-info-default-std-non-matching I think we don't have the same mechanism to put into the |
We could follow 2 approaches, not necessarily incompatible:
|
I was thinking about the first approach, yes. Problems |
Sure. Currently, the CI system is applying a default set of profiles. None of them contain |
Okay. I'm not sure I agree with such an approach since the question of the standard version is on the toolchain, not a global configuration. I'm not sure how to reliably generate a default version even. So I'd consider the first approach. Thanks for the input. 🙂 |
For recipes that require a C++11, should we throw an error when the cppstd setting is missing on compilers with an older default standard? |
Okay, I think now I get it how we should do. The thing with All it means that indeed if a project requires a About the algorithm to handle the package configuration:
We can nicely wrap it into an additional tool. |
Set timeout to 2 hours.
* xmlsec: bump * Bump/xmlsec/all (#54) * xmlsec/all: bump deps Generated and committed by [Conan Center Bump Deps](https://github.com/ericLemanissier/conan-center-index-bump-deps) Find more updatable recipes in the [GitHub Pages](https://ericLemanissier.github.io/conan-center-index-bump-deps/) * rebump * unbump libxml2 * simplify test package * remove 1.3.2 * Update conanfile.py * Update conanfile.py
* xmlsec: bump * Bump/xmlsec/all (conan-io#54) * xmlsec/all: bump deps Generated and committed by [Conan Center Bump Deps](https://github.com/ericLemanissier/conan-center-index-bump-deps) Find more updatable recipes in the [GitHub Pages](https://ericLemanissier.github.io/conan-center-index-bump-deps/) * rebump * unbump libxml2 * simplify test package * remove 1.3.2 * Update conanfile.py * Update conanfile.py
* xmlsec: bump * Bump/xmlsec/all (conan-io#54) * xmlsec/all: bump deps Generated and committed by [Conan Center Bump Deps](https://github.com/ericLemanissier/conan-center-index-bump-deps) Find more updatable recipes in the [GitHub Pages](https://ericLemanissier.github.io/conan-center-index-bump-deps/) * rebump * unbump libxml2 * simplify test package * remove 1.3.2 * Update conanfile.py * Update conanfile.py
This issue can be closed |
Recipes should handle problems of incompatible standard version flags gracefully and raise
ConanInvalidConfiguration
appropriately.The text was updated successfully, but these errors were encountered: