From f60e3fa62f2019e5cf895108528be0dcf46ef6f0 Mon Sep 17 00:00:00 2001 From: xiaoyifang Date: Mon, 18 Nov 2024 15:32:56 +0800 Subject: [PATCH] fix: [macos] icudata missed in the final executable dependencies --- cmake/Deps_Unix.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/Deps_Unix.cmake b/cmake/Deps_Unix.cmake index 0308550b..4d8a5e61 100644 --- a/cmake/Deps_Unix.cmake +++ b/cmake/Deps_Unix.cmake @@ -85,7 +85,7 @@ if (WITH_ZIM) target_link_libraries(${GOLDENDICT} PRIVATE PkgConfig::ZIM) if (APPLE) - set(CMAKE_PREFIX_PATH "${CMAKE_PREFIX_PATH};$(brew --prefix icu4c);/usr/local;/opt/homebrew/opt/icu4c") + set(ICU_ROOT "$(brew --prefix icu4c)") # 查找 ICU 库 find_package(ICU REQUIRED COMPONENTS i18n data uc)