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)