diff options
| author | Jérôme Leclercq <[email protected]> | 2023-03-05 14:22:59 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-03-05 14:22:59 +0100 |
| commit | f4507ac8a2ca478bf9f2f1d6e6b48c7d567b0f4e (patch) | |
| tree | 96019de3254b2371aaae3ef60b5778f4c61fbfc1 /xmake/modules/package | |
| parent | 70f1a5ff1850f8138759500295702eb2541c227b (diff) | |
Set ANDROID_PLATFORM with CMake
Diffstat (limited to 'xmake/modules/package')
| -rw-r--r-- | xmake/modules/package/tools/cmake.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua index f2173764a..02c36ec2d 100644 --- a/xmake/modules/package/tools/cmake.lua +++ b/xmake/modules/package/tools/cmake.lua @@ -378,6 +378,7 @@ function _get_configs_for_android(package, configs, opt) table.insert(configs, "-DCMAKE_TOOLCHAIN_FILE=" .. path.join(ndk, "build/cmake/android.toolchain.cmake")) table.insert(configs, "-DANDROID_ABI=" .. package:arch()) if ndk_sdkver then + table.insert(configs, "-DANDROID_PLATFORM=android-" .. ndk_sdkver) table.insert(configs, "-DANDROID_NATIVE_API_LEVEL=" .. ndk_sdkver) end if ndk_cxxstl then |
