Skip to content

Commit

Permalink
Fix: build with icu >= 76 where icu-i18n and icu-uc become separated (O…
Browse files Browse the repository at this point in the history
  • Loading branch information
fundawang authored Nov 5, 2024
1 parent 9da6cd4 commit 14fac2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ if(NOT OPTION_DEDICATED)
find_package(Fontconfig)
endif()
find_package(Harfbuzz)
find_package(ICU OPTIONAL_COMPONENTS i18n)
find_package(ICU OPTIONAL_COMPONENTS i18n uc)
endif()
endif()
endif()
Expand Down Expand Up @@ -331,6 +331,7 @@ if(NOT OPTION_DEDICATED)
link_package(Fontconfig TARGET Fontconfig::Fontconfig)
link_package(Harfbuzz TARGET harfbuzz::harfbuzz)
link_package(ICU_i18n)
link_package(ICU_uc)

if(SDL2_FOUND AND OPENGL_FOUND AND UNIX)
# SDL2 dynamically loads OpenGL if needed, so do not link to OpenGL when
Expand Down

0 comments on commit 14fac2a

Please sign in to comment.