Skip to content

Commit

Permalink
Fetch a known-good version of googletest
Browse files Browse the repository at this point in the history
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 google#23.

Also added a .gitignore file.

Signed-off-by: Ted Lyngmo <ted@lyncon.se>
  • Loading branch information
TedLyngmo committed Dec 31, 2022
1 parent 3ba4720 commit 6e82eac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .gitignore
@@ -0,0 +1,7 @@
CMakeCache.txt
CMakeFiles
Makefile
bin
cmake_install.cmake
gtest
lib
5 changes: 3 additions & 2 deletions autogen.sh
Expand Up @@ -21,6 +21,7 @@
# are automatically generated.

set -e
gtest_release='release-1.12.1'

if [ ! -z "$@" ]; then
for argument in "$@"; do
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6e82eac

Please sign in to comment.