CMake: fix building on Android

This commit is contained in:
李通洲
2024-10-05 18:42:47 +08:00
parent 951a15b61b
commit c2ec1e9606
+2 -2
View File
@@ -1026,7 +1026,7 @@ if(FreeBSD AND EXISTS "/usr/local/bin/objdump")
endif()
endif()
if(LINUX)
if(LINUX OR ANDROID)
target_compile_definitions(libfastfetch PUBLIC _GNU_SOURCE _XOPEN_SOURCE __STDC_WANT_LIB_EXT1__=1 _FILE_OFFSET_BITS=64)
elseif(WIN32)
target_compile_definitions(libfastfetch PUBLIC _GNU_SOURCE WIN32_LEAN_AND_MEAN=1 _WIN32_WINNT=0x0A00)
@@ -1614,4 +1614,4 @@ fastfetch is a neofetch-like tool for fetching system information and displaying
It is written mostly in C to achieve much better performance.\
")
include(CPack)
include(CPack)