Closed Lioncky closed 1 month ago
Hi @Lioncky, thank you for opening this report. Unfortunately we cannot repro this issue on a simple app, there is no error: CMake was unable to find a build program corresponding to "Ninja" even if "CMAKE_MAKE_PROGRAM" is not set in setting.json.
If you could provide some more information about this issue, that would be great. For example, repro steps to reproduce this, or a small example of a script you're using.
From Garrett Campbell's response to a similar issue in https://github.com/microsoft/vscode-cmake-tools/issues/3443#issuecomment-2341166427:
Please ensure that you're making use of cmake.generator or cmake.preferredGenerator settings. In the most recent extension release it is expected that if you're using the unspecified kit for example, no generator is used unless it's found on the system, so you should be sure to define the cmake.generator setting. Thanks!
I can confirm what @Amy-Li03 said above, closing this issue. THanks!
Brief Issue Summary
VSCode cmake/generate unable to find a build program corresponding to "Ninja" https://code.visualstudio.com/docs/terminal/profiles
It look like vscode has found cmake.exe by my self-define vs2022dev command prompt, but I have to add this
into
setting.json
otherwise it can't find the ninja, maybe a bug?CMake Tools Diagnostics
Debug Log
Additional Information
No response