Fixed unable to build SFML with latest NDK
This commit is contained in:
parent
86617c0550
commit
4135855ad4
@ -106,6 +106,9 @@ endif()
|
|||||||
|
|
||||||
# Android options
|
# Android options
|
||||||
if(SFML_OS_ANDROID)
|
if(SFML_OS_ANDROID)
|
||||||
|
# avoid missing libraries when building SFML for Android with NDK r19c and later
|
||||||
|
set(CMAKE_FIND_ROOT_PATH "${PROJECT_SOURCE_DIR};${CMAKE_FIND_ROOT_PATH}")
|
||||||
|
|
||||||
# make sure there's the android library available
|
# make sure there's the android library available
|
||||||
if (CMAKE_ANDROID_API LESS 14)
|
if (CMAKE_ANDROID_API LESS 14)
|
||||||
message(FATAL_ERROR "Android API level (${CMAKE_ANDROID_API}) must be equal or greater than 14.")
|
message(FATAL_ERROR "Android API level (${CMAKE_ANDROID_API}) must be equal or greater than 14.")
|
||||||
|
Loading…
Reference in New Issue
Block a user