# FetchContent with poco

**URL:** https://discourse.cmake.org/t/fetchcontent-with-poco/6659
**Category:** Usage
**Created:** [October 13, 2022, 1:17pm UTC](https://discourse.cmake.org/t/fetchcontent-with-poco/6659 "2022-10-13T13:17:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![sampsont](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/s/fbc32d/32.png) [@sampsont](https://discourse.cmake.org/u/sampsont)
#### Post date: [October 13, 2022, 1:17pm UTC](https://discourse.cmake.org/t/fetchcontent-with-poco/6659/1 "2022-10-13T13:17:39Z")

</div>

I’m trying to use FetchContent to use poco library. It complains about the version tag.

> include(FetchContent)  
> FetchContent\_Declare(  
> poco  
> GIT\_REPOSITORY [GitHub - pocoproject/poco: The POCO C++ Libraries are powerful cross-platform C++ libraries for building network- and internet-based applications that run on desktop, server, mobile, IoT, and embedded systems.](https://github.com/pocoproject/poco.git)  
> GIT\_TAG “Release 1.12.2”  
> )  
> FetchContent\_MakeAvailable(poco)

I get the following error: (I also tried GIT\_TAG “1.12.2” with same results)

> [cmake] [0/8] Performing download step (git clone) for ‘poco-populate’  
> [cmake] Cloning into ‘poco-src’…  
> [cmake] fatal: invalid reference: Release 1.12.2  
> [cmake] CMake Error at poco-subbuild/poco-populate-prefix/tmp/poco-populate-gitclone.cmake:49 (message):  
> [cmake] Failed to checkout tag: ‘Release 1.12.2’

---

<div class="post-metadata">

### Author: ![Angew](https://discourse.cmake.org/user_avatar/discourse.cmake.org/angew/32/229_2.png) [@Angew](https://discourse.cmake.org/u/Angew)
#### Post date: [October 13, 2022, 1:29pm UTC](https://discourse.cmake.org/t/fetchcontent-with-poco/6659/2 "2022-10-13T13:29:42Z")

</div>

If you look into the poco repo on github, you will see it has tags like this: `poco-1.12.2-release`. Try that.

---

<div class="post-metadata">

### Author: ![sampsont](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/s/fbc32d/32.png) [@sampsont](https://discourse.cmake.org/u/sampsont)
#### Post date: [October 13, 2022, 5:25pm UTC](https://discourse.cmake.org/t/fetchcontent-with-poco/6659/3 "2022-10-13T17:25:42Z")

</div>

Perfect! Now I know where to look.

Thanks!
