From 02adbb462adbcb9964bfc4872608da8a11a4d3f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Mon, 14 Aug 2023 10:33:11 +0800 Subject: [PATCH] Android: link to `libandroid-wordexp` if available Ref: https://github.com/termux/termux-packages/tree/master/packages/libandroid-wordexp --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 71f580cd4..dd7efea0e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -824,6 +824,13 @@ elseif(BSD) target_link_libraries(libfastfetch PRIVATE "usbhid" ) +elseif(ANDROID) + CHECK_LIBRARY_EXISTS(android-wordexp wordexp "" HAVE_LIBANDROID_WORDEXP) + if(HAVE_LIBANDROID_WORDEXP) + target_link_libraries(libfastfetch + PRIVATE android-wordexp + ) + endif() endif() target_include_directories(libfastfetch