Skip to content
This repository has been archived by the owner on Apr 28, 2022. It is now read-only.

Commit

Permalink
Apply CMake 3.7 changes for Android
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslo committed Nov 11, 2016
1 parent e79faa0 commit 7a5f840
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions AndroidApk.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@ endfunction()
##################################################

function(android_create_apk)
if(ANDROID AND CMAKE_VERSION VERSION_LESS "3.7")
message(FATAL_ERROR "CMake version 3.7+ required")
endif()

set(optional "")
set(
one
Expand Down Expand Up @@ -372,12 +376,7 @@ function(android_create_apk)
@ONLY
)

apk_check_not_empty(ANDROID_ABI)

# Special case for ANDROID_ABI == "armv7a with NEON"
# which results in INSTALL_FAILED_NO_MATCHING_ABIS during installation
# This creates a separate variable for teh ANDROID_ABI_DIR omitting "with NEON"
string(REGEX REPLACE " with NEON" "" ANDROID_ABI_DIR "${ANDROID_ABI}")
set(ANDROID_ABI_DIR "${ANDROID_NDK_ABI_NAME}")

apk_find_tool("${ANDROID_ANDROID_COMMAND}" ANDROID_ANDROID_COMMAND_PATH)
apk_find_tool("${ANDROID_ADB_COMMAND}" ANDROID_ADB_COMMAND_PATH)
Expand Down

0 comments on commit 7a5f840

Please sign in to comment.