commit f2ede88a78c637deb809a0a7cc4433df46a10031
parent 21ecc8d6f9fda64b7c08ad2204e3f37ebd59378a
Author: TheJackiMonster <thejackimonster@gmail.com>
Date: Mon, 11 Mar 2024 11:48:01 +0100
Make building tests with libcheck optional
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat:
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/meson.build b/meson.build
@@ -63,7 +63,12 @@ pkg.generate(
description: 'A client-side library for applications to use the Messenger service of GNUnet',
)
-subdir('tests')
+check_dep = dependency('check', required: false)
+
+if check_dep.found()
+ subdir('tests')
+endif
+
subdir('tools')
run_target(
diff --git a/tests/meson.build b/tests/meson.build
@@ -1,6 +1,6 @@
#
# This file is part of GNUnet.
-# Copyright (C) 2023 GNUnet e.V.
+# Copyright (C) 2023--2024 GNUnet e.V.
#
# GNUnet is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published
@@ -19,7 +19,7 @@
#
test_deps = [
- dependency('check'),
+ check_dep,
dependency('gnunetutil'),
]