Skip to content

Commit

Permalink
[#3130] trim trailing slash
Browse files Browse the repository at this point in the history
  • Loading branch information
pzadroga committed Feb 21, 2024
1 parent e94d19c commit 3e4b5f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions m4macros/ax_gtest.m4
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 3e4b5f9

Please sign in to comment.