Crascit/DownloadProject

Failed to clone repository

Closed this issue · 1 comments

I am trying to use DownloadProject exactly as demonstrated (to download GTest), but I am getting:

[ 11%] Performing download step (git clone) for 'googletest-download'
-- Had to git clone more than once:
3 times.
CMake Error at googletest-download/googletest-download-prefix/tmp/googletest-download-gitclone.cmake:40 (message):
Failed to clone repository: 'https://github.com/google/googletest.git'

I can clone the repository manually with no issues. Any thoughts?

Thanks,

David

Ah, my fault. I had replaced
${UPDATE_DISCONNECTED_IF_AVAILABLE}
with
UPDATE_DISCONNECTED 0

because I knew my CMake version was less than 3.2, but I see now that it needs to be simply a blank string. Sorry for the noise.