summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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