-
Notifications
You must be signed in to change notification settings - Fork 432
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
Bad CMake executable message appears erroneously #2368
Comments
I just found out (I think) that Workspace setting always overwrites User even if it is empty. So basically I am unable to use CMake from a shared directory between macOS host/Linux on a VM.
|
Yes, Workspace and Folder settings always override User. I'm not 100% clear on what you're trying to do though. Are you setting |
Yes, I tried that. So we can't have a global setting for cmake.cmakePath or am I doing something wrong? |
If you don't set anything for |
So I use the same folder on a Mac. I'm accessing it also via Virtual Box which has Linux. Linux uses snaps so I need to explicitly set: cmake.cmakePath to /snap/cmake/current/bin/cmake but then this breaks my Mac settings :) |
If I clear: I get: Bad CMake executable "". Is it installed or settings contain the correct path (cmake.cmakePath)? |
This setting sets it to "cmake". |
I feel like VS Code used to show the User value if you didn't set it in Workspace settings. This looks confusing and perhaps is a regression from previous versions. |
That's confusing! Thank you! |
Apparently it's always been this way. I'm adding a 👍 to this issue in hopes that they'll redesign it: microsoft/vscode#50827 Though, honestly, I almost always use the JSON view for settings. |
Just for the record. Another workaround: #838 (comment) |
bad. Hopes it will be fixed. |
Fix is merged in and should be included in the 1.15 release. |
While investigating #2361, it appears that the "Bad CMake executable" message appears one more time after fixing the
cmake.cmakePath
setting and saving the settings.json file. Despite the message, the save works and the newcmake.cmakePath
setting is used in the next Configure operation.The text was updated successfully, but these errors were encountered: