Skip to content

Commit

Permalink
fix: Skip tests when running as a meson subproject
Browse files Browse the repository at this point in the history
  • Loading branch information
lhearachel committed Jan 11, 2025
1 parent f46acdf commit 77b429f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ project(
'buildtype': 'release', # O3
'b_ndebug': 'if-release',
'warning_level': '2', # all, extra
'c_std': 'c17',
},
)

Expand All @@ -36,7 +35,10 @@ subdir('tools')

subdir('include')
subdir('src')
subdir('tests')

if not meson.is_subproject()
subdir('tests')
endif

metang_exe = executable(
'metang',
Expand Down

0 comments on commit 77b429f

Please sign in to comment.