How to specify build output directory path?

I tried to reproduce your setup by creating the following files and folders:

Then I opened “x64 Native Tools Command Prompt for VS 2017”, changed my working directory to topic-202/CMake/build_msvc/, and ran:

cmake .. -G Ninja -DCMAKE_BUILD_TYPE=debug
cmake --build .

I now have MyExe.exe inside build_msvc/, and Kernel.lib inside build_msvc/Kernel/.
I don’t have any debug folder, so I can’t help you with “Which variable holds the exe output path: build_msvc/debug?”

Please let me know what I should change in my setup to be able to reproduce properly.