meson: do not build tests by default when '-Dtests=false'

[zj: it is still possible to build tests explicitly by calling
     ninja -C build test-name. This way we have full flexibility.]
This commit is contained in:
Yu Watanabe
2018-09-13 12:07:34 +02:00
committed by Zbigniew Jędrzejewski-Szmek
parent 964bc0ad60
commit fd1939fbe7
3 changed files with 13 additions and 7 deletions
+1 -1
View File
@@ -235,7 +235,7 @@ custom_target(
'sys',
command : [sys_script_py, meson.current_build_dir()],
output : 'sys',
build_by_default : true)
build_by_default : want_tests != 'false')
if perl.found()
udev_test_pl = find_program('udev-test.pl')