Skip to content

Commit

Permalink
Merge pull request #2693 from Ali-Amir/u/ali/optional-meson-unit-tests
Browse files Browse the repository at this point in the history
Add option to disable building unit tests in Meson build file.
  • Loading branch information
horenmar authored May 27, 2023
2 parents 535205e + ce7b153 commit 8008625
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ project(
)

subdir('src/catch2')
subdir('tests')
if get_option('tests')
subdir('tests')
endif
1 change: 1 addition & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
option('tests', type: 'boolean', value: true, description: 'Build the unit tests')

0 comments on commit 8008625

Please sign in to comment.