CMake: Fix logic that automatically fetches submodules.

Bug: b/123894424
Change-Id: I9d3d24241d929cb80f9f28062537b50093009530
Reviewed-on: https://swiftshader-review.googlesource.com/c/24408
Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Ben Clayton <bclayton@google.com>
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 206e82f..6616893 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -97,7 +97,7 @@
 # Initialize submodules
 ###########################################################
 
-if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/third_party/googletest)
+if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/third_party/googletest/.git)
     message(WARNING "
   third_party/googletest submodule missing.
   Running 'git submodule update --init' to download it: