aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmake/cpu.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/cpu.cmake b/cmake/cpu.cmake
index a9cbce1e..040c5247 100644
--- a/cmake/cpu.cmake
+++ b/cmake/cpu.cmake
@@ -61,7 +61,7 @@ endif()
set(WEBP_SIMD_FILES_TO_INCLUDE)
set(WEBP_SIMD_FLAGS_TO_INCLUDE)
-if(${ANDROID})
+if(ANDROID AND ANDROID_ABI)
if(${ANDROID_ABI} STREQUAL "armeabi-v7a")
# This is because Android studio uses the configuration "-march=armv7-a
# -mfloat-abi=softfp -mfpu=vfpv3-d16" that does not trigger neon