diff options
author | Max Kellermann <max@musicpd.org> | 2020-05-27 16:05:39 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2020-05-27 16:06:49 +0200 |
commit | 30d97fe8a040a9d89f3be2dd443c1991cc73405f (patch) | |
tree | 7ce5037a302c036c0e091138de7f196bd220fc4b /src/decoder | |
parent | 5cb0080052856d988aa63922398f242ce6873a69 (diff) |
meson.build: fix the WildMidi check when the feature is disabled
Fixes regression from commit 69f09648a402
Diffstat (limited to 'src/decoder')
-rw-r--r-- | src/decoder/plugins/meson.build | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/decoder/plugins/meson.build b/src/decoder/plugins/meson.build index ca90cc07d..21a75c6a4 100644 --- a/src/decoder/plugins/meson.build +++ b/src/decoder/plugins/meson.build @@ -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 |