meson: fix flac_dep under Windows
declare_dependency's found() method evaluates to true always, resulting in MPD trying to build flac when not found. Check for dependency()'s find() first. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
8a3d144714
commit
e7e07c39c5
|
@ -1,6 +1,6 @@
|
||||||
libflac_dep = dependency('flac', version: '>= 1.2', required: get_option('flac'))
|
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
|
# Our Windows build generates a static libFLAC build
|
||||||
libflac_dep = declare_dependency(compile_args: '-DFLAC__NO_DLL',
|
libflac_dep = declare_dependency(compile_args: '-DFLAC__NO_DLL',
|
||||||
dependencies: libflac_dep)
|
dependencies: libflac_dep)
|
||||||
|
|
Loading…
Reference in New Issue