Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMartin Hořeňovský2023-05-27 12:00:52 +0200
committerGitHub2023-05-27 12:00:52 +0200
commit8008625d7e00d42120b1e10e991f044c280dc88a (patch)
treec13e05d1b1186fc08b681a711a123de9e20442e1
parent535205e2ac0d26d03126d93327b15c79ac35d3ef (diff)
parentce7b1530219a638b0852805544e99f673c38ca86 (diff)
downloadcatch3-8008625d7e00d42120b1e10e991f044c280dc88a.tar.gz
Merge pull request #2693 from Ali-Amir/u/ali/optional-meson-unit-tests
Add option to disable building unit tests in Meson build file.
-rw-r--r--meson.build4
-rw-r--r--meson_options.txt1
2 files changed, 4 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 5b361d63..ed5033ac 100644
--- a/meson.build
+++ b/meson.build
@@ -14,4 +14,6 @@ project(
)
subdir('src/catch2')
-subdir('tests')
+if get_option('tests')
+ subdir('tests')
+endif
diff --git a/meson_options.txt b/meson_options.txt
new file mode 100644
index 00000000..76904873
--- /dev/null
+++ b/meson_options.txt
@@ -0,0 +1 @@
+option('tests', type: 'boolean', value: true, description: 'Build the unit tests')