From 22e1dc5ce9e8342de6f1c17e8daf2783c57343de Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Thu, 23 Sep 2021 09:48:51 +0800 Subject: [PATCH] refact --- CMakeLists.txt | 2 +- cmake/gtest_CMakeLists.txt.in | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 06b50d4f95..e5fbc69d1a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,7 +20,7 @@ set(DEPS_TMP_FILE "${CMAKE_BINARY_DIR}/deps_tmp_CMakeLists.txt.in") configure_file("${CMAKE_SUPPORT_DIR}/deps_CMakeLists.txt.in" ${DEPS_TMP_FILE}) ## googletest -option(BUILD_TEST "If build unit tests using googletest" OFF) +option(BUILD_TEST "If build unit tests using googletest" ON) if(${BUILD_TEST}) cat("${CMAKE_SUPPORT_DIR}/gtest_CMakeLists.txt.in" ${DEPS_TMP_FILE}) diff --git a/cmake/gtest_CMakeLists.txt.in b/cmake/gtest_CMakeLists.txt.in index ba4eaef8fb..ed210d305c 100644 --- a/cmake/gtest_CMakeLists.txt.in +++ b/cmake/gtest_CMakeLists.txt.in @@ -1,8 +1,8 @@ # googletest ExternalProject_Add(googletest - GIT_REPOSITORY git@github.com:google/googletest.git - GIT_TAG master + GIT_REPOSITORY git@github.com:taosdata/googletest.git + GIT_TAG release-1.11.0 SOURCE_DIR "${CMAKE_SOURCE_DIR}/deps/googletest" BINARY_DIR "${CMAKE_BINARY_DIR}/googletest-build" CONFIGURE_COMMAND "" -- GitLab