OSDN Git Service

CMake: Fix logic that automatically fetches submodules.
authorBen Clayton <bclayton@google.com>
Mon, 4 Feb 2019 22:40:45 +0000 (22:40 +0000)
committerBen Clayton <bclayton@google.com>
Tue, 5 Feb 2019 15:07:55 +0000 (15:07 +0000)
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>
CMakeLists.txt

index 206e82f..6616893 100644 (file)
@@ -97,7 +97,7 @@ set_property(GLOBAL PROPERTY USE_FOLDERS ON)
 # 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: