From 3763f3b3bc2d57fc23dc4ccbe5caa6c0da052c84 Mon Sep 17 00:00:00 2001 From: Javier Date: Sat, 2 Feb 2019 16:51:04 +0100 Subject: workaround unknown issue with ndk environment --- app/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt index e994569..45a3615 100644 --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -2,10 +2,14 @@ # documentation: https://d.android.com/studio/projects/add-native-code.html # Sets the minimum version of CMake required to build the native library. - cmake_minimum_required(VERSION 3.4.1) set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/libs/cmake) +# I have no idea why this is required... +if(NOT DEFINED CMAKE_SYSROOT AND DEFINED ANDROID_SYSROOT) + set(CMAKE_SYSROOT ${ANDROID_SYSROOT}) +endif(NOT DEFINED CMAKE_SYSROOT AND DEFINED ANDROID_SYSROOT) + # OpenSSL stuff file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/openssl/include) add_custom_command(OUTPUT ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/libssl.so ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/libcrypto.so -- cgit v1.2.3