CMake: fix pkg-config behavior when building for Android
This commit is contained in:
parent
1d0329a065
commit
19eec22b38
2 changed files with 4 additions and 0 deletions
|
@ -108,6 +108,9 @@ if (YUZU_USE_BUNDLED_VCPKG)
|
|||
if (ANDROID)
|
||||
set(VCPKG_TARGET_TRIPLET "arm64-android")
|
||||
set(ENV{ANDROID_NDK_HOME} "${ANDROID_NDK}")
|
||||
# this is to avoid CMake using the host pkg-config to find the host
|
||||
# libraries when building for Android targets
|
||||
set(PKG_CONFIG_EXECUTABLE "aarch64-none-linux-android-pkg-config" CACHE FILEPATH "" FORCE)
|
||||
list(APPEND VCPKG_MANIFEST_FEATURES "android")
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue