From 0045e8fcdc717051104f6fec84304a547a2c2eaa Mon Sep 17 00:00:00 2001 From: sangelovic Date: Mon, 20 May 2019 23:08:20 +0200 Subject: [PATCH] Do shallow clone of googletest --- tests/googletest-download/CMakeLists.txt.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/googletest-download/CMakeLists.txt.in b/tests/googletest-download/CMakeLists.txt.in index aff4f6f..5c2a362 100644 --- a/tests/googletest-download/CMakeLists.txt.in +++ b/tests/googletest-download/CMakeLists.txt.in @@ -1,6 +1,6 @@ # Taken from https://github.com/google/googletest/blob/master/googletest/README.md#incorporating-into-an-existing-cmake-project -cmake_minimum_required(VERSION 2.8.2) +cmake_minimum_required(VERSION 3.6) project(googletest-download NONE) @@ -9,6 +9,7 @@ include(ExternalProject) ExternalProject_Add(googletest GIT_REPOSITORY https://github.com/google/googletest.git GIT_TAG master + GIT_SHALLOW 1 SOURCE_DIR "${CMAKE_CURRENT_BINARY_DIR}/googletest-src" BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/googletest-build" CONFIGURE_COMMAND ""