This commit is contained in:
xiaoyifang 2024-11-19 15:29:08 +08:00
parent a1f528395c
commit f3a2d569b7

View file

@ -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)