From 9402afc353bb359b4d87622451abd635d111d356 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 5 May 2022 11:14:00 +0200 Subject: build: sanity check options Fail when tests/documentation is enabled without libraries. Fail when neither scanner nor libraries is enabled, because we don't build anything in that case. Signed-off-by: Simon Ser --- tests/meson.build | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/meson.build b/tests/meson.build index ffb5136..5efd6f7 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -1,3 +1,7 @@ +if not get_option('libraries') + error('-Dtests=true requires -Dlibraries=true') +endif + test_runner = static_library( 'test-runner', sources: [ -- cgit v1.2.3-70-g09d2