Skip to content

Commit

Permalink
Add option to disable building unit tests in Meson build file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali-Amir committed May 26, 2023
1 parent 535205e commit ce7b153
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 ce7b153

Please sign in to comment.