# Reference documentation for FetchContent

**URL:** <https://discourse.cmake.org/t/reference-documentation-for-fetchcontent/11760>\
**Category:** Code\
**Created:** [September 24, 2024, 7:33pm UTC](https://discourse.cmake.org/t/reference-documentation-for-fetchcontent/11760 "2024-09-24T19:33:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MickeyKnox](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/m/a4c791/32.png) [@MickeyKnox](https://discourse.cmake.org/u/MickeyKnox)\
**Post date:** [September 24, 2024, 7:33pm UTC](https://discourse.cmake.org/t/reference-documentation-for-fetchcontent/11760/1 "2024-09-24T19:33:29Z")

</div>

I’ve stumbled upon this code snippet:

```auto
FetchContent_Declare(
    box2d
    GIT_REPOSITORY https://github.com/erincatto/box2d.git
    GIT_TAG 7b273b12409252d247b89940d29a8aab0386f570
    GIT_SHALLOW TRUE
    GIT_PROGRESS TRUE
)

```

and I would like to look up the documentation for GIT\_SHALLOW and GIT\_PROGRESS. The [FetchContent documentation](https://cmake.org/cmake/help/latest/module/FetchContent.html) doesn’t cover those. Where can I find a complete reference documentation with an explanantion for all possible values in `FetchContent_Declare`?

---

<div class="post-metadata">

**Author:** ![marc.chevrier](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/m/ecb155/32.png) [@marc.chevrier](https://discourse.cmake.org/u/marc.chevrier)\
**Post date:** [September 24, 2024, 9:08pm UTC](https://discourse.cmake.org/t/reference-documentation-for-fetchcontent/11760/2 "2024-09-24T21:08:36Z")

</div>

As specified in `FetchContent_Declare()` documentation, you have to refer to [ExternalProject\_Add()](https://cmake.org/cmake/help/latest/module/ExternalProject.html#command:externalproject_add) command documentation for these options.
