Choosing the right generator: ninja vs visual studio 2019

Hello, dear friends!
I am absolutely new to llvm but willing to learn, so please bear with me and my possibly silly problem.
At this point I have done the following:
$ git clone —config core.autocrlf=false\ https://github.com/llvm/llvmproject.git
cd llvm-project
md build && cd build
So far, so good, but when I try
cmake –G Ninja -DLLVM_ENABLE_PROJECTS=clang …/llvm
CMake generates build system files for Visual Studio 16, not for NINJA, as I exected.
So, looks like -G ninja is simply ignored…

My OS is Windows 7, ninja version 1.10.2, Visual studio 16.11.3., CMake version 3.19.1
Do i need to manually edit CMakeSettings.json? And if so, which one?
And just a note: before trying the above stuff, i did use CMake to build for VS 2019. Not sure if it matters.
Please, help! Any advise will be greatly appreciated.

And just a note: before trying the above stuff, i did use CMake to build for VS 2019. Not sure if it matters.

Did you do so in the very same build folder?
You have to wipe all files from build folder before changing the generator.

CMakeSettings.json is something that’s mainly used by Visual Studio to store the settings used to invoke CMake with, so if you use cmake from the command line, that shouldn’t really make a difference.

Thanks for your response, fodinabor!

No, i have started with absolutely new, empty directory, but i was afraid that the settings had saved some place after the previous build.