From 30fc06f6a8b54b853a26290a6a0c74435ac4956e Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Wed, 2 Oct 2019 19:51:20 +0200 Subject: [PATCH] package/znc: fix build with cmake < 3.10 Fixes: - http://autobuild.buildroot.org/results/991dd1d74f00f027a905d2ec3ad1a1b2b723f978 Signed-off-by: Fabrice Fontaine Reviewed-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni --- package/znc/znc.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/znc/znc.mk b/package/znc/znc.mk index 78e1410b68..54dc63f4ea 100644 --- a/package/znc/znc.mk +++ b/package/znc/znc.mk @@ -11,6 +11,11 @@ ZNC_LICENSE_FILES = LICENSE ZNC_DEPENDENCIES = host-pkgconf ZNC_CONF_OPTS = -DWANT_CYRUS=OFF -DWANT_I18N=OFF -DWANT_PERL=OFF +# Before CMake 3.10, passing THREADS_PTHREAD_ARG=OFF was needed to +# disable a try_run() call in the FindThreads tests, which caused a +# build failure when cross-compiling. +ZNC_CONF_OPTS += -DTHREADS_PTHREAD_ARG=OFF + ifeq ($(BR2_PACKAGE_ICU),y) ZNC_DEPENDENCIES += icu ZNC_CONF_OPTS += -DWANT_ICU=ON -- 2.30.2