# unable to access 'https://github.com/google/googletest.git/'

**URL:** https://discourse.cmake.org/t/unable-to-access-https-github-com-google-googletest-git/4358
**Category:** Usage
**Created:** [October 28, 2021, 3:43pm UTC](https://discourse.cmake.org/t/unable-to-access-https-github-com-google-googletest-git/4358 "2021-10-28T15:43:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![yUHaOLiu-tj](https://discourse.cmake.org/user_avatar/discourse.cmake.org/yuhaoliu-tj/32/1912_2.png) [@yUHaOLiu-tj](https://discourse.cmake.org/u/yUHaOLiu-tj)
#### Post date: [October 28, 2021, 3:43pm UTC](https://discourse.cmake.org/t/unable-to-access-https-github-com-google-googletest-git/4358/1 "2021-10-28T15:43:10Z")

</div>

Hi all,  
I am trying to compile a project through Cmake-Gui in the windows 10 OS, but it has some mistakes like the following commands:

```auto
  Checking Build System
  Creating directories for 'googletest-populate'
  Building Custom Rule F:/ogs/opengeosys/_deps/googletest-subbuild/CMakeLists.txt
  Performing download step (git clone) for 'googletest-populate'
  Cloning into 'googletest-src'...
  fatal: unable to access 'https://github.com/google/googletest.git/': Failed to connect to github.com port 443: Timed out
  Cloning into 'googletest-src'...
  fatal: unable to access 'https://github.com/google/googletest.git/': Failed to connect to github.com port 443: Timed out
  Cloning into 'googletest-src'...
  fatal: unable to access 'https://github.com/google/googletest.git/': Failed to connect to github.com port 443: Timed out
  -- Had to git clone more than once:
            3 times.
  CMake Error at googletest-subbuild/googletest-populate-prefix/tmp/googletest-populate-gitclone.cmake:31 (message):
    Failed to clone repository: 'https://github.com/google/googletest.git'

```

I have searched some solutions on the website which suggest me change `https:` to `git`. However, I am not using the _git clone_ command in a Git Bash, so I can’t change that automatically generated code in the Terminal… Can anyone give me some help? I will appreciate it a lot.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [October 28, 2021, 4:04pm UTC](https://discourse.cmake.org/t/unable-to-access-https-github-com-google-googletest-git/4358/2 "2021-10-28T16:04:46Z")

</div>

You can change the clone url to `git://` instead. However, I think that there are just network issues at play here which isn’t something that CMake can do much about. Does it work if you clone it manually on the command line (with `https` or `git`)?

---

<div class="post-metadata">

### Author: ![yUHaOLiu-tj](https://discourse.cmake.org/user_avatar/discourse.cmake.org/yuhaoliu-tj/32/1912_2.png) [@yUHaOLiu-tj](https://discourse.cmake.org/u/yUHaOLiu-tj)
#### Post date: [October 28, 2021, 4:12pm UTC](https://discourse.cmake.org/t/unable-to-access-https-github-com-google-googletest-git/4358/4 "2021-10-28T16:12:49Z")

</div>

Thanks for your advice. I have tried the conpile process again and this time the googletest module has been cloned successfully but another clone work failed… Now I am sure that it is the network problem. Maybe a more stable network is needed…
