summaryrefslogtreecommitdiffstats
path: root/m4macros
diff options
context:
space:
mode:
authorPiotrek Zadroga <piotrek@isc.org>2023-09-26 15:42:56 +0200
committerPiotrek Zadroga <piotrek@isc.org>2023-10-04 19:36:20 +0200
commitfbe5b52f47f42f005b7629cad200d65b7401f33a (patch)
tree72c8f2ba878ade9a7d57b7e64deb808d4d773205 /m4macros
parent[#3065] add debug notice macros (diff)
downloadkea-fbe5b52f47f42f005b7629cad200d65b7401f33a.tar.xz
kea-fbe5b52f47f42f005b7629cad200d65b7401f33a.zip
[#3065] modify semver regex
Diffstat (limited to 'm4macros')
-rw-r--r--m4macros/ax_gtest.m42
1 files changed, 2 insertions, 0 deletions
diff --git a/m4macros/ax_gtest.m4 b/m4macros/ax_gtest.m4
index 919d2accb2..9290f4c2a5 100644
--- a/m4macros/ax_gtest.m4
+++ b/m4macros/ax_gtest.m4
@@ -113,6 +113,7 @@ if test "x$enable_gtest" = "xyes" ; then
# If the GTEST_VERSION is still not correct semver, we need to determine googletest version in other way.
# Let's try to extract it from CMake build script used by Google Test starting from version 1.8.0.
semverRegex='.*\([[0-9]]\+\.[[0-9]]\+\.[[0-9]]\+\).*'
+ semverRegex='.*\([0-9]\+\.[0-9]\+\.[0-9]\+\).*'
gtest_version_candidate=
gtest_version_candidate=$(expr "$GTEST_VERSION" : "$semverRegex")
gtest_version_found="no"
@@ -129,6 +130,7 @@ if test "x$enable_gtest" = "xyes" ; then
GTEST_VERSION=$gtest_version_candidate
fi
else
+ dpkg -l googletest libgtest-dev 2>/dev/null
# Try to get googletest version from debian/ubuntu package
dpkg -S "$GTEST_SOURCE" | cut -d':' -f1 &> /dev/null
if test $? -eq 0; then