From 4135855ad42d8db90e481bf26167886b9b22b54b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bendeg=C3=BAz=20=C3=81cs?= <30595431+acsbendi@users.noreply.github.com> Date: Mon, 8 Apr 2019 19:17:26 +0200 Subject: [PATCH] Fixed unable to build SFML with latest NDK --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a4589fa40..7be98732c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -106,6 +106,9 @@ endif() # Android options 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 if (CMAKE_ANDROID_API LESS 14) message(FATAL_ERROR "Android API level (${CMAKE_ANDROID_API}) must be equal or greater than 14.")