Git Product home page Git Product logo

Comments (4)

memsharded avatar memsharded commented on July 18, 2024

Hi @wizard-123

Thanks for your question.

When defining components, most of the global values are dropped, they are not additive (we have tried, but it would have been breaking behavior, so we couldn't move it forward), so only the components values are taken into account.

So if all components for example want to define the include directories as "inc", they have to do self.cpp_info.components["compX"].includedirs = ["inc"] for every component, the self.cpp_info.includedirs is discarded and not used.

from conan.

wizard-123 avatar wizard-123 commented on July 18, 2024

Thank you for your answer, but I am still confused about why the cmake enviroment variable CMAKE_PREFIX_PATH is set to the component‘s .builddirs instead of the root’s .builddirs during the configuring process of the test package.

from conan.

memsharded avatar memsharded commented on July 18, 2024
self.cpp_info.set_property("cmake_find_mode", "none")
self.cpp_info.builddirs = [f"lib/cmake/vtk-9.3"]  # This doesn't have effect, it is discarded
self.cpp_info.components[full_name].builddirs.append("lib")  # Only this one has effect

Line 2 doesn't have any effect, once components are defined, the only definition that counts is the components one in Line 3. Does this clarify the issue?

from conan.

wizard-123 avatar wizard-123 commented on July 18, 2024

Thank you very much for resolving my question

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.