Commit 7146b174 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Fixed ZLIB not found when using NDK 19

parent 5d76a9ef
......@@ -43,7 +43,9 @@ set(ANDROID_STL "c++_shared")
include("${CMAKE_ANDROID_NDK}/build/cmake/android.toolchain.cmake")
set(CMAKE_FIND_ROOT_PATH "${CMAKE_SYSROOT}" "${ANDROID_SYSTEM_LIBRARY_PATH}" "${CMAKE_INSTALL_PREFIX}")
if(CMAKE_ANDROID_NDK_VERSION VERSION_LESS 19)
set(CMAKE_FIND_ROOT_PATH "${CMAKE_SYSROOT}" "${ANDROID_SYSTEM_LIBRARY_PATH}" "${CMAKE_INSTALL_PREFIX}")
endif()
set(CMAKE_CXX_FLAGS_RELEASE "-Os -DNDEBUG")
set(CMAKE_C_FLAGS_RELEASE "-Os -DNDEBUG")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment