mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-22 18:47:09 +01:00
[android] Link C++ runtime according to VCPKG_CRT_LINKAGE (#11266)
https://developer.android.com/ndk/guides/cpp-support
This commit is contained in:
parent
3e2409f47d
commit
e886d48561
@ -17,6 +17,12 @@ else()
|
|||||||
message(FATAL_ERROR "Unknown ABI for target triplet ${VCPKG_TARGET_TRIPLET}")
|
message(FATAL_ERROR "Unknown ABI for target triplet ${VCPKG_TARGET_TRIPLET}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (VCPKG_CRT_LINKAGE STREQUAL "dynamic")
|
||||||
|
set(ANDROID_STL c++_shared CACHE STRING "")
|
||||||
|
else()
|
||||||
|
set(ANDROID_STL c++_static CACHE STRING "")
|
||||||
|
endif()
|
||||||
|
|
||||||
if(DEFINED ENV{ANDROID_NDK_HOME})
|
if(DEFINED ENV{ANDROID_NDK_HOME})
|
||||||
set(ANDROID_NDK_HOME $ENV{ANDROID_NDK_HOME})
|
set(ANDROID_NDK_HOME $ENV{ANDROID_NDK_HOME})
|
||||||
else()
|
else()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user