Skip to content

How to prevent toml11 from cloning submodules if not required? #302

@IAmNotHanni

Description

@IAmNotHanni

Hello

I am using toml11 in our CMake setup like this:

FetchContent_Declare(toml
    GIT_REPOSITORY https://github.com/ToruNiina/toml11.git
    GIT_TAG v4.0.3
    GIT_SHALLOW ON
    GIT_PROGRESS ON
    FIND_PACKAGE_ARGS 4.0.3)

And then later when I need it I FetchContent_MakeAvailable(toml).

When doing so, it takes a comparably long time to clone the submodules:

Image

Can I disable this somehow? I really don't need to run the toml11 tests locally.

best regards
Johannes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions