This commit is contained in:
xiaoyifang 2024-11-19 14:34:36 +08:00
parent 76a112e60f
commit 549866f25a

View file

@ -87,7 +87,8 @@ if (WITH_ZIM)
if (APPLE) if (APPLE)
# ICU # ICU
# CMAKE_PREFIX_PATH # CMAKE_PREFIX_PATH
set(CMAKE_PREFIX_PATH "${CMAKE_PREFIX_PATH};$(brew --prefix icu4c)") set(ICU_ROOT "/usr/local/opt/icu4c")
message(STATUS "ICU_LIBRARIES: $(brew --prefix icu4c)")
find_package(ICU REQUIRED COMPONENTS i18n data uc) find_package(ICU REQUIRED COMPONENTS i18n data uc)
message(STATUS "ICU_LIBRARIES: ${ICU_LIBRARIES}") message(STATUS "ICU_LIBRARIES: ${ICU_LIBRARIES}")