Skip to content

Commit

Permalink
dev: fix macOS build (#1811)
Browse files Browse the repository at this point in the history
  • Loading branch information
shenlebantongying committed Nov 4, 2024
1 parent fdf8551 commit ca9dd13
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmake/Deps_Unix.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -99,4 +100,4 @@ endif ()
if (USE_SYSTEM_TOML)
find_package(tomlplusplus)
target_link_libraries(${GOLDENDICT} PRIVATE tomlplusplus::tomlplusplus)
endif ()
endif ()

0 comments on commit ca9dd13

Please sign in to comment.