Do not build tests if we are cross-compiling

This commit is contained in:
Matthieu Gautier 2020-01-21 10:58:43 +01:00
parent 9c2bc6affc
commit 11118efd84
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ gtest_dep = dependency('gtest',
fallback: ['gtest', 'gtest_main_dep'],
required:false)
if gtest_dep.found()
if gtest_dep.found() and not meson.is_cross_build()
foreach test_name : tests
test_exe = executable(test_name, [test_name+'.cpp'],
link_with : kiwixlib,