diff options
author | Piotrek Zadroga <piotrek@isc.org> | 2024-02-20 15:52:53 +0100 |
---|---|---|
committer | Piotrek Zadroga <piotrek@isc.org> | 2024-02-21 17:20:05 +0100 |
commit | 3e4b5f9485bb66995e6241b894d0aec00c62ab75 (patch) | |
tree | 8a5a56d77a75a68a148e47e752afefdc8cdfc65d /m4macros/ax_gtest.m4 | |
parent | [#3185] fixed access invalid iterator (diff) | |
download | kea-3e4b5f9485bb66995e6241b894d0aec00c62ab75.tar.xz kea-3e4b5f9485bb66995e6241b894d0aec00c62ab75.zip |
[#3130] trim trailing slash
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" |