mirror of https://github.com/kiwix/libkiwix.git
Do not build tests if we are cross-compiling (#308)
Do not build tests if we are cross-compiling
This commit is contained in:
commit
560f67522f
|
@ -16,7 +16,7 @@ gtest_dep = dependency('gtest',
|
||||||
fallback: ['gtest', 'gtest_main_dep'],
|
fallback: ['gtest', 'gtest_main_dep'],
|
||||||
required:false)
|
required:false)
|
||||||
|
|
||||||
if gtest_dep.found()
|
if gtest_dep.found() and not meson.is_cross_build()
|
||||||
foreach test_name : tests
|
foreach test_name : tests
|
||||||
test_exe = executable(test_name, [test_name+'.cpp'],
|
test_exe = executable(test_name, [test_name+'.cpp'],
|
||||||
link_with : kiwixlib,
|
link_with : kiwixlib,
|
||||||
|
|
Loading…
Reference in New Issue