CMake and Ninja problem

I am trying to compile my project from windows terminal using cocos2d-x v4. But I get this error:

CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.

ninja already exist in android sdk cmake/bin folder.

I downloaded ninja and added PATH variable restarted terminal but same error thrown (I tried to use sdk cmake/bin folder.to point ninja PATH but no luck again).

CMake version is 3.10.2

I use windows 7

note: cocos2d-x 1.7 builds without problem because it use ndk-build instead CMake

I manually added CMAKE_MAKE_PROGRAM path to CMakelist and toolchain files but didnt worked!