Android Studio可以使用系统CMake吗? [英] Can Android Studio use the system CMake?
问题描述
我正在使用Android Studio + CMake构建本机库. AS已请求安装CMake,即使我已经安装了CMake并且在我的路径上也是如此.您能告诉AS在某个位置寻找CMake而不是安装另一个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+.
在该网页上:
-
从CMake官方网站下载并安装CMake 3.7或更高版本.
Download and install CMake 3.7 or higher from the official CMake website.
在项目的local.properties文件中包括CMake安装的路径:
Include the path to the CMake installation in your project's local.properties file:
cmake.dir ="路径到cmake"
cmake.dir="path-to-cmake"
这篇关于Android Studio可以使用系统CMake吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!