Git Product home page Git Product logo

Comments (4)

memsharded avatar memsharded commented on July 19, 2024 1

Hi @PauloCarvalhoRJ

Thanks for your question.

It is the CMakeToolchain.preprocessor_definitions: https://docs.conan.io/2/reference/tools/cmake/cmaketoolchain.html#preprocessor-definitions for preprocessor definitions

It is CMakeToolchain.cache_variables: https://docs.conan.io/2/reference/tools/cmake/cmaketoolchain.html#cache-variables for CMake variables stored in CMakePresets.json (passed in command line)

It is CMakeToolchain.variables: https://docs.conan.io/2/reference/tools/cmake/cmaketoolchain.html#variables, for CMake variables to be defined in the conan_toolchain.cmake.

All of them defined in the generate() method.

from conan.

PauloCarvalhoRJ avatar PauloCarvalhoRJ commented on July 19, 2024 1

True. So far, the API elements seem to have better defined roles than in Conan 1. Congratulations.

from conan.

PauloCarvalhoRJ avatar PauloCarvalhoRJ commented on July 19, 2024

Hello, @memsharded ,

The new improved API is becoming clearer now. Thanks for the pointers and the further reading.

regards,

PC

from conan.

memsharded avatar memsharded commented on July 19, 2024

The new improved API is becoming clearer now. Thanks for the pointers and the further reading.

Yes, there is a much more clear separation of concerns now, with the generate() and generators defining files, and build() with the helpers just executing them. This way it is also possible to achieve exactly the same build with calling cmake ... than when calling build(), which is very important and it was not possible with Conan 1 legacy approach.

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.