diff --git a/code/CMakeLists.txt b/code/CMakeLists.txt index f2ac5f69b..4c962537c 100644 --- a/code/CMakeLists.txt +++ b/code/CMakeLists.txt @@ -175,6 +175,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()