From cda6838c08b62a53ed0afd534cb61bba6ed66314 Mon Sep 17 00:00:00 2001 From: Miguel Horta Date: Sun, 7 Apr 2024 13:12:01 +0100 Subject: [PATCH] fix: fontconfig linking failed due to missing expat --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ab551744db..829bfea507 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -360,10 +360,12 @@ endif() include(CheckAtomic) if(ANDROID) - target_link_libraries(openttd + target_link_libraries(openttd_lib ${EXPAT_LIBRARY} ) if(NOT CMAKE_BUILD_TYPE STREQUAL Debug) + target_compile_options(openttd_lib PRIVATE -flto=thin) + target_link_libraries(openttd_lib -flto=thin) target_compile_options(openttd PRIVATE -flto=thin) target_link_libraries(openttd -flto=thin) endif()