Use NDK_ARCHITECTURE instead of CMAKE_SYSTEM_PROCESSOR as library name suffix when building for Android.

This commit is contained in:
Ghislain MARY 2017-01-20 11:18:13 +01:00
parent eeebd4aa4f
commit 415c6a4eec
2 changed files with 2 additions and 2 deletions

View file

@ -224,7 +224,7 @@ if(ENABLE_SHARED)
if(WIN32 AND CMAKE_SYSTEM_NAME STREQUAL "WindowsPhone" AND NOT CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
set_target_properties(linphone PROPERTIES PREFIX "lib")
elseif(ANDROID)
set_target_properties(linphone PROPERTIES OUTPUT_NAME "linphone-${CMAKE_SYSTEM_PROCESSOR}")
set_target_properties(linphone PROPERTIES OUTPUT_NAME "linphone-${NDK_ARCHITECTURE}")
add_dependencies(linphone linphonecore-jni-header)
endif()
if(MSVC)

View file

@ -219,7 +219,7 @@ endif()
if(ANDROID OR IOS)
if(ANDROID)
add_library(linphonetester SHARED ${SOURCE_FILES_C})
set_target_properties(linphonetester PROPERTIES OUTPUT_NAME "linphonetester-${CMAKE_SYSTEM_PROCESSOR}")
set_target_properties(linphonetester PROPERTIES OUTPUT_NAME "linphonetester-${NDK_ARCHITECTURE}")
endif()
if(IOS)
add_library(linphonetester STATIC ${SOURCE_FILES_C})