1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-30 01:49:10 +00:00

Fix: build with icu >= 76 where icu-i18n and icu-uc become separated (#13048)

This commit is contained in:
fundawang
2024-11-05 19:12:34 +08:00
committed by GitHub
parent 9da6cd4817
commit 14fac2ad37

View File

@@ -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()
@@ -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