xref: /freebsd/share/mk/googletest.test.inc.mk (revision 966e279052f33b1665480e0327c177013cb8205a)
1# $FreeBSD$
2
3GTESTS_CXXFLAGS+= -DGTEST_HAS_POSIX_RE=1
4GTESTS_CXXFLAGS+= -DGTEST_HAS_PTHREAD=1
5GTESTS_CXXFLAGS+= -DGTEST_HAS_STREAM_REDIRECTION=1
6GTESTS_CXXFLAGS+= -frtti
7
8.include <bsd.compiler.mk>
9
10.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 100000
11# Required until googletest is upgraded to a more recent version (after
12# upstream commit efecb0bfa687cf87836494f5d62868485c00fb66).
13GTESTS_CXXFLAGS+= -Wno-deprecated-copy
14
15# Required until googletest is upgraded to a more recent version (after
16# upstream commit d44b137fd104dfffdcdea103f7de11b9eccc45c2).
17GTESTS_CXXFLAGS+= -Wno-signed-unsigned-wchar
18.endif
19
20# XXX: src.libnames.mk should handle adding this directory for libgtest's,
21# libgmock's, etc, headers.
22CXXFLAGS+=	-I${DESTDIR}${INCLUDEDIR}/private
23
24CXXSTD?=	c++11
25
26NO_WTHREAD_SAFETY=
27