Do not build tests if we are cross-compiling (#308)

Do not build tests if we are cross-compiling
This commit is contained in:
Matthieu Gautier 2020-01-21 11:11:22 +01:00 committed by GitHub
commit 560f67522f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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,