diff --git a/CMakeLists.txt b/CMakeLists.txt index 07654d04..850ddef8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -143,7 +143,7 @@ else() endif() endif() -if (CMAKE_SYSTEM_NAME MATCHES "Linux") +if (CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "Android") EXECUTE_PROCESS(COMMAND uname -o COMMAND tr -d '\n' OUTPUT_VARIABLE OPERATING_SYSTEM) if (OPERATING_SYSTEM MATCHES "Android") set(EXTRA_LIBS ${EXTRA_LIBS} log)