Using FetchContent to download specific folders in a repo

Is it possible to use FetchContent to pull down specific folders in a repo OR exclude specific folders?
I have a dependency in one of my projects that has a folder of images and other assets that I don’t need. It would be great to either exclude it or specify the exact folders that I need before building.

Thanks.

If you can come up with a URL that captures what you want to download, then FetchContent can do it. FetchContent isn’t anything special here, it’s essentially just a wrapper around either file(DOWNLOAD), or a collection of source control commands. The URL-based downloads will typically be more efficient for dependencies that change rarely, and are probably your only viable path here, assuming you can actually come up with a suitable URL.

That works for me.
I had a vague memory have being able to specify folders in FetchContent_MakeAvailable but I couldn’t find anything in the documentation that seemed right. Maybe this is actually what I settled on before also. Thanks.

FetchContent_MakeAvailable() has never supported anything other than a list of dependencies to make available.