From cd1f4e5584d1080d1e125da7d83ddf99e7579f81 Mon Sep 17 00:00:00 2001 From: mvglasow Date: Sun, 28 Feb 2021 15:04:37 +0200 Subject: Fix:build:Use NDK libraries when building for Android Signed-off-by: mvglasow --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 7a9bbe5d0..58a517fe8 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -159,6 +159,12 @@ INCLUDE (CheckLibraryExists) INCLUDE (CheckFunctionExists) INCLUDE (CheckSymbolExists) +if(ANDROID) + set(ENV{PKG_CONFIG_DIR} "") + set(ENV{PKG_CONFIG_LIBDIR} "${CMAKE_SYSROOT}/usr/lib/pkgconfig:${CMAKE_SYSROOT}/usr/share/pkgconfig") + set(ENV{PKG_CONFIG_SYSROOT_DIR} ${CMAKE_SYSROOT}) +endif(ANDROID) + ################################ # pkg-config based detection # ################################ -- cgit v1.2.1