Skip to content

Commit 9f4e389

Browse files
committed
Fix enable_tools=false breaking test builds
Move compat_cflags definition before the subdir_done() guard so the variable is always available for test/meson.build regardless of the enable_tools setting.
1 parent 84614a8 commit 9f4e389

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libvmaf/tools/meson.build

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
if not get_option('enable_tools')
2-
subdir_done()
3-
endif
4-
51
compat_cflags = []
62
if cc.has_function('strsep')
73
compat_cflags += '-DHAVE_STRSEP'
84
endif
95

6+
if not get_option('enable_tools')
7+
subdir_done()
8+
endif
9+
1010
vmaf = executable(
1111
'vmaf',
1212
['vmaf.c', 'cli_parse.c', 'y4m_input.c', 'vidinput.c', 'yuv_input.c'],

0 commit comments

Comments
 (0)