build: include ap_config.h in libgtest

This is also needed while compiling libgtest because it's using our
cmath wrapper header. Otherwise it will end up entering the
"ifndef WAF_BUILD" part and fail to compile on gcc 5.3.1.
This commit is contained in:
Lucas De Marchi 2016-06-13 12:47:05 -03:00 committed by Gustavo Jose de Sousa
parent 120564f094
commit 0af8b42ade
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ def _build_common_taskgens(bld):
use='mavlink',
)
bld.libgtest()
bld.libgtest(cxxflags=['-include', 'ap_config.h'])
if bld.env.HAS_GBENCHMARK:
bld.libbenchmark()