cpm-cmake / CPM.cmake

📦 CMake's missing package manager. A small CMake script for setup-free, cross-platform, reproducible dependency management.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add an option to disable pulling Data from LFS

Laguna1989 opened this issue · comments

In my scenario there is a repository A which contains some test data stored in git lfs. In my project I pull repository A and want to use it as a dependency. I am not interested in running the tests from repository A.

Is it possible to get an option to disable pulling from git LFS in CPMAddPackage? This would allow to save bandwidth and time. Additionally configuring/building on machines with a slow internet connection would be way faster.

The files stored in normal git should still be pulled normally.

E.g. an argument could be added to CPMAddPackage:

CPMAddPackage(
        NAME repository_a
        GITHUB_REPOSITORY user/repository_a
        GIT_TAG master
        NO_LFS
        OPTIONS
        "NORMAL_FLAG ON"
)

If a tag/release is pulled, this can be achieved by pulling the source code *.zip from the release page. However if there is jut a tag (without a release) or if I want to get the latest main/master, the above suggestion would be needed.