From 6e82eacf3eaa4a791e7f600b122ce3a993b2f6e7 Mon Sep 17 00:00:00 2001 From: Ted Lyngmo Date: Sat, 31 Dec 2022 01:18:54 +0100 Subject: [PATCH] Fetch a known-good version of googletest Compilation currently fails when using the latest googletest. This patch instead downloads release-1.12.1 (which is the latest release right now). Fixes issue #23. Also added a .gitignore file. Signed-off-by: Ted Lyngmo --- .gitignore | 7 +++++++ autogen.sh | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..c09b0519 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +CMakeCache.txt +CMakeFiles +Makefile +bin +cmake_install.cmake +gtest +lib diff --git a/autogen.sh b/autogen.sh index 15f9119a..17c7afbc 100755 --- a/autogen.sh +++ b/autogen.sh @@ -21,6 +21,7 @@ # are automatically generated. set -e +gtest_release='release-1.12.1' if [ ! -z "$@" ]; then for argument in "$@"; do @@ -51,10 +52,10 @@ if test ! -e gtest; then fi echo "Google Test not present. Fetching from the web..." - curl $curlopts -L -o main.zip https://codeload.github.com/google/googletest/zip/refs/heads/main + curl $curlopts -L -o main.zip https://codeload.github.com/google/googletest/zip/$gtest_release unzip -q main.zip rm main.zip - mv googletest-main gtest + mv googletest-$gtest_release gtest fi if test -z $(which cmake); then