Blob Blame History Raw
--- configure.ac.orig	2020-05-26 17:38:35.000000000 -0600
+++ configure.ac	2020-07-02 08:53:13.868173299 -0600
@@ -54,7 +54,7 @@ AS_IF([test "$with_gtest" = "download"],
     fi
   ])],
   [test "$with_gtest" = "yes"], [
-    AS_IF([test -e "$GTEST_PATH/src/gtest-all.cc"], [], [
+    AS_IF([test -e "$GTEST_PATH/include/gtest/gtest.h"], [], [
       AC_MSG_ERROR([could not find gtest source at path $GTEST_PATH.])
     ])
   ],
@@ -62,7 +62,7 @@ AS_IF([test "$with_gtest" = "download"],
   [AC_MSG_ERROR([invalid value $with_gtest for with_gtest.])]
 )
 AS_IF([test "$with_gtest" = "yes"],
-  [CPPFLAGS="-I$GTEST_PATH/include -I$GTEST_PATH $CPPFLAGS"]);
+  [CPPFLAGS="-I$GTEST_PATH/include/gtest -I$GTEST_PATH $CPPFLAGS"]);
 AM_CONDITIONAL(with_gtest, test "$with_gtest" = "yes")
 
 DEPS_CFLAGS="$MEMTAILOR_CFLAGS $GTEST_CFLAGS"
--- src/test/gtestInclude.cpp.orig	2020-05-26 17:38:35.000000000 -0600
+++ src/test/gtestInclude.cpp	2020-07-02 08:52:35.084246541 -0600
@@ -7,4 +7,4 @@
 
 // the .. goes back from the include/ directory of gtest so we can
 // enter the src directory.
-#include "src/gtest-all.cc"
+#include <gtest/gtest.h>