Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Thirdparty.cmake #249

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cmake/Thirdparty.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ if (WIN32)
endif()

ExternalProject_Add(ADD_${LIB_GTEST}
URL http://cdn.tarsyun.com/src/release-1.10.0.zip
URL https://github.com/google/googletest/archive/refs/tags/release-1.11.0.tar.gz
DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/download
PREFIX ${CMAKE_BINARY_DIR}
INSTALL_DIR ${CMAKE_SOURCE_DIR}
Expand All @@ -131,21 +131,21 @@ if (WIN32)
BUILD_IN_SOURCE 1
BUILD_COMMAND ${CMAKE_COMMAND} --build . --config ${CMAKE_BUILD_TYPE}
INSTALL_COMMAND ${CMAKE_COMMAND} --build . --config ${CMAKE_BUILD_TYPE} --target install
URL_MD5 82358affdd7ab94854c8ee73a180fc53
URL_MD5 e8a8df240b6938bb6384155d4c37d937
)
else()
set(LIB_GTEST "gtest")

ExternalProject_Add(ADD_${LIB_GTEST}
URL http://cdn.tarsyun.com/src/release-1.10.0.fixed.tar.gz
URL https://github.com/google/googletest/archive/refs/tags/release-1.11.0.tar.gz
DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/download
PREFIX ${CMAKE_BINARY_DIR}
INSTALL_DIR ${CMAKE_SOURCE_DIR}
CONFIGURE_COMMAND ${CMAKE_COMMAND} . -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/src/gtest
SOURCE_DIR ${CMAKE_BINARY_DIR}/src/gtest-lib
BUILD_IN_SOURCE 1
BUILD_COMMAND make
URL_MD5 6f26d634fa9cac718263c2df20df21a4
URL_MD5 e8a8df240b6938bb6384155d4c37d937
)
endif()

Expand Down