-
Notifications
You must be signed in to change notification settings - Fork 460
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
Execute CMake on Bash on Ubuntu on Windows? #111
Comments
It's an interesting question... Perhaps a cmake-launcher option which prefixes the CMake command? Then, when CMake executes, it runs the CMake inside of Ubuntu on Windows. This is not a use case I've ever thought of but would be excellent in terms of usability for those who want to dev for Linux on Windows. |
I can confirm that there are two ways to execute commands in
|
However, you will also need path translation for the working directory when invoking cmake from WSL (Windows Subsystem for Linux, generally more Google friendly than referring to the marketing name, Ubuntu on Win...). Indeed, would be a very nice addition. Big brother VS is actually very close to reaching the cross-platform nirvana. They solved multi-configuration by having multiple directories of CMake configurations, thus one can click-click to select an Architecture which corresponds to certain CMake configuration parametrizations. ps.: plus, they got proper IntelliSense hooked up by extracting the required compiler flags from the CMake invocations via cmake-server mode, and generating a hidden vcxproj accordingly, which the editor can hook into. |
As @MathiasMagnus says, there's a bit more than just simply prefixing the CMake commands. Still, I think the addition would be useful and is something I may want to have myself, although for different use cases. For example, I'd like to be able to build and configure over SSH, in a Docker container, or in a Vagrant VM with a shared folder. Such a thing would be useful as some kind of "CMake Launcher" that lets you invoke and work on a project in interesting and useful ways. Another big question is how this will play into cmake-server, which communicates using a named pipe (it is possible to communicate using stdin/stdout, but that has proven to be problematic and buggy compared to using a pipe, and may require some changes to CMake upstream). |
Code seems to now properly support the execution of a task in a shell: microsoft/vscode#6579 (comment) How to make it work with cmake-tools? |
I don't believe that will work as it currently stands, since the way the extension executes CMake is unrelated to VSCode's task execution. |
hi! |
Haven't looked at it yet, and I'm still unsure of just how to make it work. Still in the backlog. |
+1 It wil be great to have that for docker
|
Does the new WSL Remote extension address this issue? |
yes, at least for me |
@bobbrow yes it does. As far as I'm concerned, this issue can be closed. |
I'm willing to compile a project with the vitasdk, which is available on Linux but not Windows.
For this, I usually open a
Bash on Ubuntu on Windows
instance, runcmake
andmake
.How can I integrate this build workflow in Visual Studio Code with this extension?
The text was updated successfully, but these errors were encountered: