From d4e5af7df27138ce7cc60edfd98cb20abe06c821 Mon Sep 17 00:00:00 2001 From: Ulukyn Date: Fri, 27 Mar 2020 17:36:07 +0100 Subject: [PATCH] Added: libicu in Makefile --- code/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/CMakeLists.txt b/code/CMakeLists.txt index aceb82ce3..2ce437d86 100644 --- a/code/CMakeLists.txt +++ b/code/CMakeLists.txt @@ -152,6 +152,13 @@ IF(WITH_STATIC) IF(LIBLZMA_LIBRARIES) SET(LIBXML2_LIBRARIES ${LIBXML2_LIBRARIES} ${LIBLZMA_LIBRARIES}) ENDIF() + + # under Linux and OS X, recent libxml2 versions are linked against libicu + FIND_PACKAGE(Icu) + IF(ICU_LIBRARIES) + SET(LIBXML2_LIBRARIES ${LIBXML2_LIBRARIES} ${ICU_LIBRARIES} ${ICU_DATA_LIBRARIES}) + ENDIF() + ENDIF() ENDIF()