https://github.com/OpenTTD/OpenTTD/commit/14fac2ad37bfb9cec56b4f9169d864f6f1c7b96e From 14fac2ad37bfb9cec56b4f9169d864f6f1c7b96e Mon Sep 17 00:00:00 2001 From: fundawang Date: Tue, 5 Nov 2024 19:12:34 +0800 Subject: [PATCH] Fix: build with icu >= 76 where icu-i18n and icu-uc become separated (#13048) --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 137eb7d0f8ce9..2f0248047506a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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