refact
This commit is contained in:
parent
46f33fcbd2
commit
22e1dc5ce9
|
@ -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})
|
||||
|
|
|
@ -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 ""
|
||||
|
|
Loading…
Reference in New Issue