Android Studio 可以使用系统 CMake 吗? [英] Can Android Studio use the system CMake?
问题描述
我正在使用 Android Studio + CMake 构建本机库.AS 要求安装 CMake,即使我已经安装了 CMake 并且在我的路径中.你能告诉AS在某个位置寻找CMake,而不是安装另一个CMake吗?
gradle 3.0 的新 Android 插件将支持 使用系统 CMake,适用于 CMake 3.7+.
来自该网页:
<块引用>从 CMake 官方网站下载并安装 CMake 3.7 或更高版本.
在项目的 local.properties 文件中包含 CMake 安装路径:
cmake.dir="path-to-cmake"
I'm using Android Studio + CMake to build a native library. AS requested installing CMake, even though I already have CMake installed and in my path. Can you tell AS to look for CMake at a certain location, instead of installing another CMake?
The new Android plugin for gradle 3.0 will support using system CMake, for CMake 3.7+.
From that webpage:
Download and install CMake 3.7 or higher from the official CMake website.
Include the path to the CMake installation in your project's local.properties file:
cmake.dir="path-to-cmake"
这篇关于Android Studio 可以使用系统 CMake 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!