From 37f857c095f4c6274bacc1dfa09f78208f497fc9 Mon Sep 17 00:00:00 2001 From: xiaoyifang Date: Mon, 18 Nov 2024 15:09:47 +0800 Subject: [PATCH] fix: [macos] icudata missed in the final executable dependencies --- cmake/Deps_Unix.cmake | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cmake/Deps_Unix.cmake b/cmake/Deps_Unix.cmake index 02e90159..7e2dda6c 100644 --- a/cmake/Deps_Unix.cmake +++ b/cmake/Deps_Unix.cmake @@ -77,14 +77,12 @@ if (WITH_EPWING_SUPPORT) endif () if (WITH_ZIM) - if (APPLE) - set(CMAKE_PREFIX_PATH "$(brew --prefix icu4c);/usr/local;/opt/homebrew/opt/icu4c") - endif () - pkg_check_modules(ZIM REQUIRED IMPORTED_TARGET libzim) target_link_libraries(${GOLDENDICT} PRIVATE PkgConfig::ZIM) if (APPLE) + set(CMAKE_PREFIX_PATH "$(brew --prefix icu4c);/usr/local;/opt/homebrew/opt/icu4c") + # 查找 ICU 库 find_package(ICU REQUIRED COMPONENTS i18n data uc) target_link_libraries(${GOLDENDICT} PRIVATE ${ICU_LIBRARIES})