summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRosen Penev2022-11-22 01:02:31 +0000
committerHauke Mehrtens2022-11-26 23:52:06 +0000
commit2cb48f58c247c801a101b1625df2ff71a4f8be71 (patch)
treea328dd643d5ee5a70ebd5bd36a92428f1c29bd10
parent6bac7bbf46f9f56252325cccaad1f514d344902d (diff)
downloadopenwrt-2cb48f58c247c801a101b1625df2ff71a4f8be71.tar.gz
nls.mk: fixup cmake packages
Instead of manually overriding every cmake package that uses iconv or gettext's paths, add the prefix in here so that at least FindIconv.cmake works. Fixes compilation with BUILD_NLS. Signed-off-by: Rosen Penev <rosenp@gmail.com>
-rw-r--r--include/nls.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/nls.mk b/include/nls.mk
index 90fc27660f..f054d2bb68 100644
--- a/include/nls.mk
+++ b/include/nls.mk
@@ -10,6 +10,7 @@ ifeq ($(CONFIG_BUILD_NLS),y)
INTL_PREFIX:=$(STAGING_DIR)/usr/lib/libintl-full
INTL_FULL:=1
+ CMAKE_OPTIONS += -DCMAKE_PREFIX_PATH="$(ICONV_PREFIX);$(INTL_PREFIX)"
else
ICONV_PREFIX:=
ICONV_FULL:=