Giter VIP home page Giter VIP logo

cmake-tipi-provider's People

Contributors

daminetreg avatar lambourl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cmake-tipi-provider's Issues

[RQ] Properly exporting targets installed by the build

Motivation

Plain FetchContent without cmake-tipi-provider is doing an add_subdirectory which makes available all targets to the main project when FetchContent_MakeAvailable(Boost) is called.

In the case of cmake-tipi-provider a call to find_package(boost_filesystem CONFIG REQUIRED) is required because we do the compilation in another CMake build tree and perform an installation to be able to speed up the build and consume cached installed/ trees.

It's possible to bridge both world and provide the ease of FetchContent with the speed of installed/ cache pack without requiring the source code to be always available (cloning the source code of all dependencies for a build is not desirable as it is slow to clone big monorepos like boost, grpc and others and is exactly the value we can provide with FetchContent)

Description

To make this fully transparent we should release and make infer installed cmake packages #564 available, and record installed packages config exported target by parsing out cmake package config file.

Then we could load this information inside cmake-tipi-provider when we resolve the dependency.

Acceptance Criteria

Users of FetchContent with cmake-tipi-provider are not obliged to call find_package to load the targets of the FetchContent'ed installed project.

Handling package that don't have an install target

Motivation

FetchContent works also on projects that don't have install targets, in this configuration tipi could just fallaback to a normal build which would require the source fetching and use the cache.

Description

Detect that there is no installed target and use just a BUILD cache. Which is less performant but would work similar to FetchContent a bit faster for projects that have no install targets.

Acceptance Criteria

Projects without install target can be cached with the cmake-tipi-provider.

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.