2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-01 14:35:29 +00:00

[5057] check the (static) library too

This commit is contained in:
Francis Dupont
2016-11-05 16:40:16 +01:00
parent a278c6a932
commit 8d3603d5ab

View File

@@ -1250,6 +1250,10 @@ if test "x$enable_gtest" = "xyes" ; then
GTEST_FOUND="false"
for dir in $GTEST_PATHS; do
if test -f "$dir/include/gtest/gtest.h"; then
if ! test -f "$dir/lib/libgtests.a"; then
AC_MSG_WARN([Found Google Test include but not the library in $dir.])
continue
fi
GTEST_INCLUDES="-I$dir/include"
GTEST_LDFLAGS="-L$dir/lib"
GTEST_LDADD="-lgtest"