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 ""