From 1dfe3031199076941bf44a54a4c744f8fa8d9ecc Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Sat, 30 Nov 2013 12:25:01 -0600 Subject: [PATCH] [ANDROID] Fix ARMv5 build. --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6ea0510baf..f9af7383bb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -122,7 +122,9 @@ message(${CMAKE_SYSTEM_PROCESSOR}) if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^arm") set(_M_GENERIC 1) set(_M_ARM 1) - add_definitions(-marm -march=armv7-a) + if(${ANDROID_NDK_ABI_NAME} STREQUAL "armeabi-v7a") + add_definitions(-marm -march=armv7-a) + endif() # Set generic options so you don't have to pass anything to cmake to build ARM set(USE_GLES 1) endif()