FetchContent with poco

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.
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’

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

1 Like

Perfect! Now I know where to look.

Thanks!