summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndre Heider <a.heider@gmail.com>2019-09-29 20:57:04 +0200
committerMax Kellermann <max@musicpd.org>2019-10-07 13:34:04 +0200
commit96a9670c69bb21a9f12643b118d06e27c73f8fbd (patch)
tree5df8b1ffe7e4a6e563d336972245d3bf442f4f0e /src
parentdcc5ce67925ac9fb456f5d5e707a09f5ab931285 (diff)
lib/icu: fix build with iconv()
Diffstat (limited to 'src')
-rw-r--r--src/lib/icu/meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/icu/meson.build b/src/lib/icu/meson.build
index 3232266ec..5386a62b4 100644
--- a/src/lib/icu/meson.build
+++ b/src/lib/icu/meson.build
@@ -20,7 +20,7 @@ if icu_dep.found()
elif not get_option('iconv').disabled()
have_iconv = compiler.has_function('iconv')
conf.set('HAVE_ICONV', have_iconv)
- if get_option('iconv').enabled()
+ if not have_iconv and get_option('iconv').enabled()
error('iconv() not available')
endif
endif