mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
1
This commit is contained in:
parent
f22085d1e8
commit
99a58450f6
|
@ -78,8 +78,15 @@ endif ()
|
||||||
|
|
||||||
if (WITH_ZIM)
|
if (WITH_ZIM)
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
|
|
||||||
|
# 执行 brew list 命令并捕获输出
|
||||||
|
execute_process(
|
||||||
|
COMMAND brew --prefix libzim
|
||||||
|
OUTPUT_VARIABLE LIBZIM_PATH
|
||||||
|
|
||||||
|
)
|
||||||
# ICU from homebrew is "key-only", we need to manually prioritize it -> see `brew info icu4c`
|
# ICU from homebrew is "key-only", we need to manually prioritize it -> see `brew info icu4c`
|
||||||
set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:/usr/local/opt/icu4c@76/lib/pkgconfig:/opt/homebrew/opt/icu4c@76/lib/pkgconfig:/usr/local/opt/icu4c/lib/pkgconfig:/opt/homebrew/opt/icu4c/lib/pkgconfig")
|
set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:${LIBZIM_PATH}/lib/pkgconfig")
|
||||||
endif ()
|
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)
|
||||||
|
|
Loading…
Reference in a new issue