<div dir="ltr">Yeah, we'd like to support any CMake more recent than 3.7.0 (which is the first version to support server mode). So your fork would need to be based on a somewhat recent CMake. We probably wouldn't support a path directly in build.gradle since that is typically a source controlled artifact. We'd let you set a file path in local.properties and/or specify a CMake version number in build.gradle where we'd search for it in some well-known locations. <div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 8, 2017 at 5:21 PM, Eric Wing <span dir="ltr"><<a href="mailto:ewmailing@gmail.com" target="_blank">ewmailing@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Jom,<br>
<br>
I'm glad to hear Android's CMake will eventually catch up.<br>
<br>
But since you are here, can you add a feature that allows a user to<br>
specify an alternate location for where CMake is located? There are<br>
two useful cases for this.<br>
<br>
1) Users daring or desperate enough to try using a more recent CMake<br>
while they wait (perhaps they could have merged with Google's branch<br>
manually)<br>
<br>
2) In my case, I'm trying to implement new features into CMake (Swift<br>
compiler support). It's not going to be mainlined anytime soon since<br>
it is a long project, so even when you catch up, I still need to be<br>
able to call my fork of CMake.<br>
<br>
I don't want to overwrite anything in the Android distribution, and I<br>
have people using my stuff and helping me, so we need a way to<br>
collaborate. A simple gradle argument that lets me specify an<br>
alternative path to CMake would fix my problem. (The other things I<br>
need are specifying a toolchain file which I think you already support<br>
and an Initial Cache (-C switch) which maybe is implicitly supported<br>
since it is just a generic CMake command line argument.<br>
<br>
<br>
Right now, I am doing the alternative method of calling CMake myself<br>
through Gradle/Groovy scripts as people used to do. But I never<br>
figured out how to get debugger integration with Android Studio as a<br>
consequence. I would really like to move to the official Google/CMake<br>
support, but I can't do that unless I can invoke a different CMake. (I<br>
did pull the Google fork of CMake and I think my changes are<br>
mergable.)<br>
<br>
Thanks,<br>
Eric<br>
</blockquote></div><br></div>