-
I'm following the instructions here, so I can use a newer version of CMake. There are 4 steps there, and 1-3 seem to have worked smoothly. However, at step 4, when I install a newer copy of Ninja (which I need for C++20 modules to work), the NDK build process still uses the version of The build output contains:
My ninja is at
Is there something else I can do? Maybe it should be added to that 4th point in the documentation? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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 /**
* 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 that. |
Beta Was this translation helpful? Give feedback.
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 callfindNinjaPathLogic
, whose docs say: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…