From 093715849976c4db57d098adf1041c5ed4f4f182 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Sun, 4 Feb 2024 14:22:05 +0530 Subject: [PATCH] Fix: [CMake] Link test executable with log library in Android (#11979) --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f0f0b33e65..fe1652d6fa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -288,6 +288,10 @@ target_link_libraries(openttd ) target_link_libraries(openttd_test PRIVATE openttd_lib) +if(ANDROID) + target_link_libraries(openttd_test PRIVATE log) +endif() + include(Catch) catch_discover_tests(openttd_test)