diff --git a/src/lib/xiph/meson.build b/src/lib/xiph/meson.build index c39cee8d4..db21c635b 100644 --- a/src/lib/xiph/meson.build +++ b/src/lib/xiph/meson.build @@ -1,6 +1,6 @@ libflac_dep = dependency('flac', version: '>= 1.2', required: get_option('flac')) -if is_windows +if is_windows and libflac_dep.found() # Our Windows build generates a static libFLAC build libflac_dep = declare_dependency(compile_args: '-DFLAC__NO_DLL', dependencies: libflac_dep)