Skip to content

Commit c2ec1e9

Browse files
committed
CMake: fix building on Android
1 parent 951a15b commit c2ec1e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,7 @@ if(FreeBSD AND EXISTS "/usr/local/bin/objdump")
10261026
endif()
10271027
endif()
10281028

1029-
if(LINUX)
1029+
if(LINUX OR ANDROID)
10301030
target_compile_definitions(libfastfetch PUBLIC _GNU_SOURCE _XOPEN_SOURCE __STDC_WANT_LIB_EXT1__=1 _FILE_OFFSET_BITS=64)
10311031
elseif(WIN32)
10321032
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
16141614
It is written mostly in C to achieve much better performance.\
16151615
")
16161616

1617-
include(CPack)
1617+
include(CPack)

0 commit comments

Comments
 (0)