Can Android Studio use the system CMake?

浪尽此生 提交于 2020-06-24 07:17:36

问题


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?


回答1:


The new Android plugin for gradle 3.0 will support using system CMake, for CMake 3.7+.

From that webpage:

  1. Download and install CMake 3.7 or higher from the official CMake website.

  2. Include the path to the CMake installation in your project's local.properties file:

    cmake.dir="path-to-cmake"



来源:https://stackoverflow.com/questions/40966472/can-android-studio-use-the-system-cmake

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!