summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2019-02-02 16:51:04 +0100
committerJavier <dev.git@javispedro.com>2019-02-02 16:51:04 +0100
commit3763f3b3bc2d57fc23dc4ccbe5caa6c0da052c84 (patch)
treeb96246cf837666be2850ea937643cc472c410438
parentd5fdeb2e66ee0e00f35be39d5e9292a7362d6fc4 (diff)
downloadvndroid-3763f3b3bc2d57fc23dc4ccbe5caa6c0da052c84.tar.gz
vndroid-3763f3b3bc2d57fc23dc4ccbe5caa6c0da052c84.zip
workaround unknown issue with ndk environment
-rw-r--r--app/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
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