Git Product home page Git Product logo

Comments (3)

memsharded avatar memsharded commented on July 18, 2024 1

Hi @mzbro

Thanks for your question.

Headers are not transitive by default, the expectation is that dependencies are implementation details. There are 2 possibilities:

  • If the consumer, in this case, the test_package has a direct #include to one header of the transitive package, then the consumer should declare a direct requires to the package, as it depends directly on it.
  • If the package does #include in its public headers other headers from the dependency, then it is propagating the include requirements, and as it is not the default visibility, it should be declared in the requires with self.requires("pkg/version", transitive_headers=True)

Please let us know if that helps.

from conan.

memsharded avatar memsharded commented on July 18, 2024 1

Happy to help.

The truth is that the basic tutorial doesn't cover this transitivity, it is a bit more advanced case, we might try to add some hints or links there.

Thanks for the feedback!

from conan.

mzbro avatar mzbro commented on July 18, 2024

Adding transitive_headers=True to my example project solved this issue. Thank you very much! I must have missed that in the tutorial.

from conan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.