meson.build: fix the WildMidi check when the feature is disabled
Fixes regression from commit 69f09648a4
This commit is contained in:
parent
5cb0080052
commit
30d97fe8a0
@ -129,9 +129,13 @@ if wavpack_dep.found()
|
||||
decoder_plugins_sources += 'WavpackDecoderPlugin.cxx'
|
||||
endif
|
||||
|
||||
if not get_option('wildmidi').disabled()
|
||||
wildmidi_dep = dependency('wildmidi', required: get_option('wildmidi'))
|
||||
wildmidi_required = get_option('wildmidi')
|
||||
if wildmidi_required.enabled()
|
||||
# if the user has force-enabled WildMidi, allow the pkg-config test
|
||||
# to fail; after that, the find_library() check must succeed
|
||||
wildmidi_required = false
|
||||
endif
|
||||
wildmidi_dep = dependency('wildmidi', required: wildmidi_required)
|
||||
if not wildmidi_dep.found()
|
||||
wildmidi_dep = c_compiler.find_library('WildMidi', required: get_option('wildmidi'))
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user