mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-30 13:37:55 +00:00
[master] for trac #1247: distcheck should enable gtest when possible
If --with-gtest defined on ./configure line, then do same for distcheck target.
This commit is contained in:
@@ -2,12 +2,16 @@ SUBDIRS = doc src tests
|
||||
USE_LCOV=@USE_LCOV@
|
||||
LCOV=@LCOV@
|
||||
GENHTML=@GENHTML@
|
||||
DISTCHECK_GTEST_CONFIGURE_FLAG=@DISTCHECK_GTEST_CONFIGURE_FLAG@
|
||||
|
||||
DISTCLEANFILES = config.report
|
||||
|
||||
# When running distcheck target, do not install the configurations
|
||||
DISTCHECK_CONFIGURE_FLAGS = --disable-install-configurations
|
||||
|
||||
# Use same --with-gtest flag if set
|
||||
DISTCHECK_CONFIGURE_FLAGS += $(DISTCHECK_GTEST_CONFIGURE_FLAG)
|
||||
|
||||
clean-cpp-coverage:
|
||||
@if [ $(USE_LCOV) = yes ] ; then \
|
||||
$(LCOV) --directory . --zerocounters; \
|
||||
|
@@ -650,6 +650,7 @@ fi
|
||||
#
|
||||
if test "$gtest_path" != "no"
|
||||
then
|
||||
DISTCHECK_GTEST_CONFIGURE_FLAG="--with-gtest=\"$gtest_path\""
|
||||
if test "$gtest_path" != "yes"; then
|
||||
GTEST_PATHS=$gtest_path
|
||||
if test -x "${gtest_path}/bin/gtest-config" ; then
|
||||
@@ -690,8 +691,10 @@ else
|
||||
GTEST_INCLUDES=
|
||||
GTEST_LDFLAGS=
|
||||
GTEST_LDADD=
|
||||
DISTCHECK_GTEST_CONFIGURE_FLAG=
|
||||
fi
|
||||
AM_CONDITIONAL(HAVE_GTEST, test $gtest_path != "no")
|
||||
AC_SUBST(DISTCHECK_GTEST_CONFIGURE_FLAG)
|
||||
AC_SUBST(GTEST_INCLUDES)
|
||||
AC_SUBST(GTEST_LDFLAGS)
|
||||
AC_SUBST(GTEST_LDADD)
|
||||
|
Reference in New Issue
Block a user