From 0d1b570ce4bf5db9bd26a8e2cc8249a849e567ff Mon Sep 17 00:00:00 2001 From: shenleban tongying Date: Wed, 9 Oct 2024 21:11:57 -0400 Subject: [PATCH] dev: fix macOS build (#1811) --- cmake/Deps_Unix.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmake/Deps_Unix.cmake b/cmake/Deps_Unix.cmake index e9de93ea..f7bb4b80 100644 --- a/cmake/Deps_Unix.cmake +++ b/cmake/Deps_Unix.cmake @@ -6,7 +6,8 @@ if (APPLE) # libzim depends on ICU, but the ICU from homebrew is "key-only", we need to manually prioritize it # See `brew info icu4c` if this no longer works - set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:/usr/local/opt/icu4c/lib/pkgconfig:/opt/homebrew/opt/icu4c/lib/pkgconfig") + # Note: Remove icu4c@75 if it fails again + set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:/usr/local/opt/icu4c@75/lib/pkgconfig:/opt/homebrew/opt/icu4c@75/lib/pkgconfig:/usr/local/opt/icu4c/lib/pkgconfig:/opt/homebrew/opt/icu4c/lib/pkgconfig") endif () target_include_directories(${GOLDENDICT} PRIVATE @@ -99,4 +100,4 @@ endif () if (USE_SYSTEM_TOML) find_package(tomlplusplus) target_link_libraries(${GOLDENDICT} PRIVATE tomlplusplus::tomlplusplus) -endif () \ No newline at end of file +endif ()