-
Notifications
You must be signed in to change notification settings - Fork 468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VSCode cannot find CMake generator #880
Comments
The same problem with "settings.json" and "cmake-kits.json... |
I had the same issue after upgrading VSCode to version 1.40.0. Previously I had set my PATH environment via settings.json I fixed this issue with setting |
Can you share any of your settings? I'm not able to reproduce this problem. settings.json
cmake-tools-kits.json
|
1.2.2 was released today. Please give that a try and let us know if you continue to have issues. |
I solved! Thank you. VSCode: v1.40.1 |
I'm running 1.41.1 and I still have problems. Maybe this is specifically due to using a toolchain file, but I still get the same error: [main] Unable to determine what CMake generator to use. Please install or configure a preferred generator, or update settings.json, your Kit configuration or PATH variable. Error: No usable generator found. |
@renebarto, can you open a new issue with details about your project and configuration? Thank you! |
I had MSYS2-MinGW installed and the way I solved it:
"cmake.cmakePath": "C:\\msys64\\mingw64\\bin\\cmake.exe",
"cmake.mingwSearchDirs": [
"C:\\msys64\\mingw64\\bin"
],
"cmake.generator": "MinGW Makefiles"
{
"name": "Mingw64 GCC 9.3.0",
"compilers": {
"C": "C:\\msys64\\mingw64\\bin\\gcc.exe",
"CXX": "C:\\msys64\\mingw64\\bin\\g++.exe"
},
"preferredGenerator": {
"name": "MinGW Makefiles",
"platform": "x64"
},
"environmentVariables": {
"PATH": "C:/msys64/mingw64/bin/"
}
} |
@Foadsf, you may not want to nuke your %PATH% by overwriting it with just the MinGW path. We created |
@bobbrow so is it ok if I just change
to
|
Yes, that should work. |
It works using
|
Brief Issue Summary
I update VSCode 1.40.0. And, CMake cannot find CMake generator.
In previous VSCode version, I can use CMake/Build.
CMake Tools Log
Platform and Versions
The text was updated successfully, but these errors were encountered: