Giter Site home page Giter Site logo

Comments (2)

memsharded avatar memsharded commented on July 21, 2024 1

Hi @tbsuht

Thanks for your question.

My understand is that the builddirs information is not used, as it is placed in the generated toolchain file and we're using the one-click-workflow of the CMake extension without manually doing a conan install before.

Indeed, the problem is that cmake-conan launches from CMake, and the way that Conan has to pass paths from tool_requires is a toolchain, but as cmake-conan starts from CMake, it is not possible to pass the conan_toolchain.cmake, it is too late.

I'd say that the scope of cmake-conan is limited to what CMake can reasonably do in a single pass. Conan allows more advanced uses cases, like reusing build scripts from dependencies, but at some point the conan install + cmake flow would be more recommended as more complete and powerful, sometimes it is not possible to just do absolutely everything from a single command cmake invocation, as there are limitations.

It might be possible to do some gymnastics like parsing the json and extracting the builddirs, then defining those in the module path, I'll talk with @jcar87 regarding this possibility.

from cmake-conan.

ericriff avatar ericriff commented on July 21, 2024

I just came across the same limitation.

I'm trying to use this integration on a project that relies on protobuf / protoc. I can access the protobuf library, but not the protoc binary.

I'm interested on any suggestions.

from cmake-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.