Fix the build with WITHOUT_GOOGLETEST
Attempting to build the fusefs tests WITHOUT_GOOGLETEST will result in an error if the host system or sysroot doesn't already have googletest headers in /usr/include/private (e.g. host built/installed WITHOUT_GOOGLETEST, clean cross-buildworld WITHOUT_GOOGLETEST). Reviewed by: asomers Differential Revision: https://reviews.freebsd.org/D21367
This commit is contained in:
parent
26536f89a3
commit
883b4d95e4
@ -1,5 +1,6 @@
|
||||
# $FreeBSD$
|
||||
|
||||
.include <src.opts.mk>
|
||||
.include <bsd.compiler.mk>
|
||||
|
||||
PACKAGE= tests
|
||||
@ -9,7 +10,8 @@ TESTSDIR= ${TESTSBASE}/sys/fs
|
||||
TESTSRC= ${SRCTOP}/contrib/netbsd-tests/fs
|
||||
|
||||
#TESTS_SUBDIRS+= nullfs # XXX: needs rump
|
||||
.if ${COMPILER_FEATURES:Mc++14}
|
||||
# fusefs tests cannot be compiled/used without the googletest infrastructure.
|
||||
.if ${COMPILER_FEATURES:Mc++14} && ${MK_GOOGLETEST} != "no"
|
||||
TESTS_SUBDIRS+= fusefs
|
||||
.endif
|
||||
TESTS_SUBDIRS+= tmpfs
|
||||
|
Loading…
x
Reference in New Issue
Block a user