fix: [macos] icudata missed in the final executable dependencies

This commit is contained in:
xiaoyifang 2024-11-18 15:32:56 +08:00
parent dab7fef19b
commit f60e3fa62f

View file

@ -85,7 +85,7 @@ if (WITH_ZIM)
target_link_libraries(${GOLDENDICT} PRIVATE PkgConfig::ZIM) target_link_libraries(${GOLDENDICT} PRIVATE PkgConfig::ZIM)
if (APPLE) 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 # ICU
find_package(ICU REQUIRED COMPONENTS i18n data uc) find_package(ICU REQUIRED COMPONENTS i18n data uc)