mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
1
This commit is contained in:
parent
a1f528395c
commit
f3a2d569b7
|
@ -77,6 +77,10 @@ if (WITH_EPWING_SUPPORT)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (WITH_ZIM)
|
if (WITH_ZIM)
|
||||||
|
if (APPLE)
|
||||||
|
# 设置 pkg-config 的搜索路径
|
||||||
|
set(ENV{PKG_CONFIG_PATH} "/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:$ENV{PKG_CONFIG_PATH}")
|
||||||
|
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