Skip to content

[docs] header-only package template #12851

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

Merged

Conversation

uilianries
Copy link
Member

Related to #12678

  • Add cross-compatible Conan v1 & v2 template based on header-only example

  • I've read the guidelines for contributing.
  • I've followed the PEP8 style guides for Python code in the recipes.
  • I've used the latest Conan client version.
  • I've tried at least one configuration locally with the conan-center hook activated.

Signed-off-by: Uilian Ries <[email protected]>
@conan-center-bot

This comment has been minimized.

@conan-center-bot
Copy link
Collaborator

Updating docs!

@conan-center-bot conan-center-bot merged commit c9e7c6e into conan-io:master Sep 7, 2022
@CroydonBot CroydonBot deleted the docs/header-only-template branch September 7, 2022 17:37
ericLemanissier pushed a commit to ericLemanissier/cocorepo that referenced this pull request Sep 26, 2022
* Add header-only template

Signed-off-by: Uilian Ries <[email protected]>

* Missing self

Signed-off-by: Uilian Ries <[email protected]>
Comment on lines +57 to +58
# compiler subsettings are not available when building with self.info.clear()
if self.info.settings.get_safe("compiler.cppstd"):
Copy link
Contributor

@SpaceIm SpaceIm Oct 20, 2022

Choose a reason for hiding this comment

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

So it doesn't make sense to test this in validate() since it will never enter into this branch. And for me it looks like all this new validate logic based on self.info in conan v2 is broken.

Or you mean that it's a workaround for conan v1 clients?

Copy link
Member Author

Choose a reason for hiding this comment

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

No workaround. Need to update by using self.settings unfortunately. So far, there is no solution: conan-io/docs#2778

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants