From f3a2d569b7b49b7af0055ed90dc71121d805e394 Mon Sep 17 00:00:00 2001 From: xiaoyifang Date: Tue, 19 Nov 2024 15:29:08 +0800 Subject: [PATCH] 1 --- cmake/Deps_Unix.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/Deps_Unix.cmake b/cmake/Deps_Unix.cmake index 728bcccc..ee9b2302 100644 --- a/cmake/Deps_Unix.cmake +++ b/cmake/Deps_Unix.cmake @@ -77,6 +77,10 @@ if (WITH_EPWING_SUPPORT) endif () 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) target_link_libraries(${GOLDENDICT} PRIVATE PkgConfig::ZIM)