mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-26 10:11:30 +00:00
Do not build tests if we are cross-compiling
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user