diff options
Diffstat (limited to '')
-rw-r--r-- | m4macros/ax_gtest.m4 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/m4macros/ax_gtest.m4 b/m4macros/ax_gtest.m4 index 41bbe09e3f..138a03f6e0 100644 --- a/m4macros/ax_gtest.m4 +++ b/m4macros/ax_gtest.m4 @@ -87,6 +87,8 @@ if test "x$enable_gtest" = "xyes" ; then AC_MSG_ERROR([no gtest sources found]) fi else + # Trim trailing slashes. + GTEST_SOURCE=$(echo "$GTEST_SOURCE" | ${SED} 's:/*$::') cmakelists="$GTEST_SOURCE/CMakeLists.txt" if test ! -d "$GTEST_SOURCE/src" -a -d "$GTEST_SOURCE/googletest"; then GTEST_SOURCE="$GTEST_SOURCE/googletest" |