This commit is contained in:
xiaoyifang 2024-11-19 14:23:09 +08:00
parent 5117072666
commit e3c9f6427d

View file

@ -89,6 +89,8 @@ if (WITH_ZIM)
# CMAKE_PREFIX_PATH # CMAKE_PREFIX_PATH
set(CMAKE_PREFIX_PATH "${CMAKE_PREFIX_PATH};$(brew --prefix icu4c)") set(CMAKE_PREFIX_PATH "${CMAKE_PREFIX_PATH};$(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}")
target_link_libraries(${GOLDENDICT} PRIVATE ${ICU_LIBRARIES}) target_link_libraries(${GOLDENDICT} PRIVATE ${ICU_LIBRARIES})
endif () endif ()
endif () endif ()