TLS version mismatch

I try to Download googletest cia my cmake project, but i have trouble connecting to github:

include(FetchContent)

FetchContent_Declare(
  googletest
  GIT_REPOSITORY https://github.com/google/googletest.git
  GIT_TAG        release-1.8.1
)

FetchContent_MakeAvailable(googletest)
Performing download step (git clone) for 'googletest-populate'
  Cloning into 'googletest-src'...
  fatal: unable to access 'https://github.com/google/googletest.git/': error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
  Cloning into 'googletest-src'...
  fatal: unable to access 'https://github.com/google/googletest.git/': error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
  Cloning into 'googletest-src'...
  fatal: unable to access 'https://github.com/google/googletest.git/': error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version

My local git client can clone that repository, to i think cmake is using his own git implementation, but i have currently no idea how i can tell cmake to support newer tls versions.

I hope someone can help me with this problem. Via google i haven’t found any real solutions.

cmake just uses git from PATH; it doesn’t ship its own implementation. There’s probably a find_program happening somewhere though. Do you see the expected value in GIT_EXECUTABLE in CMakeCache.txt?

Oh yea,

I removed a very old GitHub application i tested years ago.

Now it works using the normal git client.
Thanx for this hint.