Skip to content

Commit 8d5316f

Browse files
committed
CMake (Android): link to libm
Fix #1939
1 parent 1242fda commit 8d5316f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1728,6 +1728,9 @@ elseif(GNU)
17281728
PRIVATE "m"
17291729
)
17301730
elseif(ANDROID)
1731+
target_link_libraries(libfastfetch
1732+
PRIVATE "m"
1733+
)
17311734
CHECK_LIBRARY_EXISTS(-l:libandroid-wordexp.a wordexp "" HAVE_LIBANDROID_WORDEXP_STATIC)
17321735
if(HAVE_LIBANDROID_WORDEXP_STATIC)
17331736
target_link_libraries(libfastfetch

0 commit comments

Comments
 (0)