Open bobbrow opened 4 years ago
Hi David, I think I was able to reproduce your problem. This might sound silly, but can you capitalize the first letter in "Ninja"? It looks like CMake is case-sensitive...
D:\test\cmaketest2\build>cmake -G ninja ..
CMake Error: Could not create named generator ninja
I think the extension can help by checking the casing before sending the raw cmake.generator string down to CMake.
Hi! I just bumped into this problem. But with a wrinkle added to it.
I had added a "cmake.generator" line to my settings file, and as stated, I wrote "ninja" without the capitalization. But... then, after correcting the line in the settings, the extension insisted in calling it "ninja". Not even deleting the line from the settings file, nor the "CMake: Delete Cache and Reconfigure" command, was able to bring it back to life. Only physically deleting the build directory did the trick for me.
Fixing that so any change to the generator name does the right thing would be great, if possible.
@bobbrow Thanks for the update. I am still having issues. I now see:
I guess the first message is related to #913?
The main issue seems to be:
I can run Ninja from a cmd prompt (it is in the system path). How can I fix this problem in Code?
Originally posted by @DavidA2014 in https://github.com/microsoft/vscode-cmake-tools/issues/908#issuecomment-553798672