Skip to content

How to point the build at the right ninja binary? #2001

Closed Answered by DanAlbert
rnikander asked this question in Q&A
Discussion options

You must be logged in to vote

As best as I can tell that's set here (I don't know how this works, I just went to the Studio section of cs.android.com and searched for DCMAKE_MAKE_PROGRAM). That seems to eventually call findNinjaPathLogic, whose docs say:

/**
 * Method for locating ninja.exe. The search order is:
 * 1) Folder of CMake.exe, if present
 * 2) Other CMake SDK folders, if present
 * 3) Environment PATH
 */

So the one in your path is only used if you have no other CMake versions installed by the SDK manager. 2 and 3 seem backward to me, but that's another product. File a C++ bug against Studio at https://b.android.com if you want the behavior changed. It's pretty odd that there's not gradle DSL to override t…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rnikander
Comment options

Answer selected by DanAlbert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants