mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
fix: [macos] icudata missed in the final executable dependencies
This commit is contained in:
parent
a1881a9134
commit
37f857c095
|
@ -77,14 +77,12 @@ if (WITH_EPWING_SUPPORT)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (WITH_ZIM)
|
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)
|
pkg_check_modules(ZIM REQUIRED IMPORTED_TARGET libzim)
|
||||||
target_link_libraries(${GOLDENDICT} PRIVATE PkgConfig::ZIM)
|
target_link_libraries(${GOLDENDICT} PRIVATE PkgConfig::ZIM)
|
||||||
|
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
|
set(CMAKE_PREFIX_PATH "$(brew --prefix icu4c);/usr/local;/opt/homebrew/opt/icu4c")
|
||||||
|
|
||||||
# 查找 ICU 库
|
# 查找 ICU 库
|
||||||
find_package(ICU REQUIRED COMPONENTS i18n data uc)
|
find_package(ICU REQUIRED COMPONENTS i18n data uc)
|
||||||
target_link_libraries(${GOLDENDICT} PRIVATE ${ICU_LIBRARIES})
|
target_link_libraries(${GOLDENDICT} PRIVATE ${ICU_LIBRARIES})
|
||||||
|
|
Loading…
Reference in a new issue