This commit is contained in:
xiaoyifang 2024-11-19 14:39:53 +08:00
parent 289ba9c361
commit 5de460d3ae

View file

@ -90,7 +90,7 @@ if (WITH_ZIM)
set(ICU_DEBUG ON) set(ICU_DEBUG ON)
set(ICU_ROOT "/usr/local/opt/icu4c") set(ICU_ROOT "/usr/local/opt/icu4c")
message(STATUS "ICU_LIBRARIES: $(brew --prefix icu4c)") message(STATUS "ICU_LIBRARIES: $(brew --prefix icu4c)")
find_package(ICU REQUIRED COMPONENTS i18n data uc) find_package(ICU COMPONENTS i18n data uc)
message(STATUS "ICU_LIBRARIES: ${ICU_LIBRARIES}") message(STATUS "ICU_LIBRARIES: ${ICU_LIBRARIES}")
target_link_libraries(${GOLDENDICT} PRIVATE ${ICU_LIBRARIES}) target_link_libraries(${GOLDENDICT} PRIVATE ${ICU_LIBRARIES})