Skip to content
Merged
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
14 changes: 5 additions & 9 deletions cmake/external/googletest.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2019 Google
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -18,19 +18,15 @@ if(TARGET googletest OR NOT DOWNLOAD_GOOGLETEST)
return()
endif()

# Googletest 1.8.0 fails to build on VS 2017:
# https://github.com/google/googletest/issues/1111.
#
# No release has been made since, so just pick a commit since then.
set(commit ba96d0b1161f540656efdaed035b3c062b60e006) # master@{2018-07-10}
set(version 1.10.0)

ExternalProject_Add(
googletest

DOWNLOAD_DIR ${FIREBASE_DOWNLOAD_DIR}
DOWNLOAD_NAME googletest-${commit}.tar.gz
URL https://github.com/google/googletest/archive/${commit}.tar.gz
URL_HASH SHA256=949c556896cf31ed52e53449e17a1276b8b26d3ee5932f5ca49ee929f4b35c51
DOWNLOAD_NAME googletest-${version}.tar.gz
URL https://github.com/google/googletest/archive/release-${version}.tar.gz
URL_HASH SHA256=9dc9157a9a1551ec7a7e43daea9a694a0bb5fb8bec81235d8a1e6ef64c716dcb

PREFIX ${PROJECT_BINARY_DIR}

Expand Down