Commit 32e522f7 authored by Ghislain MARY's avatar Ghislain MARY

Fix parallel build for Android.

parent b6675662
......@@ -52,11 +52,11 @@ else()
lcb_additional_options("OS=\"msvc\"")
elseif(ANDROID)
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "armv7-a")
lcb_additional_options("OS=\"android\" NDKROOT=\"${CMAKE_ANDROID_NDK}\" NDKLEVEL=${CMAKE_ANDROID_API} TARGET=\"android-${CMAKE_ANDROID_API}\" ARCH=\"arm\"")
lcb_additional_options("OS=\"android\" NDKROOT=\"${CMAKE_ANDROID_NDK}\" NDKLEVEL=${CMAKE_ANDROID_API} TARGET=\"android-${CMAKE_ANDROID_API}\" ARCH=\"arm\" TOOLCHAINPREFIX=\"${_ANDROID_TOOL_C_TOOLCHAIN_PREFIX}\"")
elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
lcb_additional_options("OS=\"android\" NDKROOT=\"${CMAKE_ANDROID_NDK}\" NDKLEVEL=${CMAKE_ANDROID_API} TARGET=\"android-${CMAKE_ANDROID_API}\" ARCH=\"arm64\"")
lcb_additional_options("OS=\"android\" NDKROOT=\"${CMAKE_ANDROID_NDK}\" NDKLEVEL=${CMAKE_ANDROID_API} TARGET=\"android-${CMAKE_ANDROID_API}\" ARCH=\"arm64\" TOOLCHAINPREFIX=\"${_ANDROID_TOOL_C_TOOLCHAIN_PREFIX}\"")
else()
lcb_additional_options("OS=\"android\" NDKROOT=\"${CMAKE_ANDROID_NDK}\" NDKLEVEL=${CMAKE_ANDROID_API} TARGET=\"android-${CMAKE_ANDROID_API}\" ARCH=\"x86\"")
lcb_additional_options("OS=\"android\" NDKROOT=\"${CMAKE_ANDROID_NDK}\" NDKLEVEL=${CMAKE_ANDROID_API} TARGET=\"android-${CMAKE_ANDROID_API}\" ARCH=\"x86\" TOOLCHAINPREFIX=\"${_ANDROID_TOOL_C_TOOLCHAIN_PREFIX}\"")
endif()
elseif(APPLE)
if(IOS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment