Android: don't force installation prefix

User should be able to change its value to any location.

See: https://cmake.org/cmake/help/v3.12/variable/CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT.html
This commit is contained in:
David Demelier 2018-11-06 13:27:59 +01:00 committed by Lukas Dürrenberger
parent 86672a3724
commit 0dfb3b072f

View File

@ -123,7 +123,9 @@ if(SFML_OS_ANDROID)
endif() endif()
# install everything in $NDK/sources/ because this path is appended by the NDK (convenient) # install everything in $NDK/sources/ because this path is appended by the NDK (convenient)
set(CMAKE_INSTALL_PREFIX ${CMAKE_ANDROID_NDK}/sources/third_party/sfml) if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set(CMAKE_INSTALL_PREFIX ${CMAKE_ANDROID_NDK}/sources/third_party/sfml CACHE PATH "Installation path (should be inside your NDK's 'sources' directory)" FORCE)
endif()
# we install libs in a subdirectory named after the ABI (lib/mips/*.so) # we install libs in a subdirectory named after the ABI (lib/mips/*.so)
set(LIB_SUFFIX "/${CMAKE_ANDROID_ARCH_ABI}") set(LIB_SUFFIX "/${CMAKE_ANDROID_ARCH_ABI}")