From 3e4b5f9485bb66995e6241b894d0aec00c62ab75 Mon Sep 17 00:00:00 2001 From: Piotrek Zadroga Date: Tue, 20 Feb 2024 15:52:53 +0100 Subject: [#3130] trim trailing slash --- m4macros/ax_gtest.m4 | 2 ++ 1 file changed, 2 insertions(+) (limited to 'm4macros/ax_gtest.m4') 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" -- cgit v1.2.3