Fix: [CMake] Link test executable with log library in Android (#11979)

This commit is contained in:
Biswapriyo Nath 2024-02-04 14:22:05 +05:30 committed by GitHub
parent d9461e52af
commit 0937158499
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

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