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

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAli-Amir Aldan2023-05-26 10:05:06 -0700
committerAli-Amir Aldan2023-05-26 10:05:06 -0700
commitce7b1530219a638b0852805544e99f673c38ca86 (patch)
treec13e05d1b1186fc08b681a711a123de9e20442e1
parent535205e2ac0d26d03126d93327b15c79ac35d3ef (diff)
downloadcatch3-ce7b1530219a638b0852805544e99f673c38ca86.tar.gz
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')