-
Notifications
You must be signed in to change notification settings - Fork 146
Support for Ninja+MSVC in Windows #113
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
Comments
hmm... basically the -G option is just kept and passed through (unless it ended up bypassed because it's generally not that useful) MSVC itself is really fast in building projects; not sure ninja would be that much better... |
fwiw, in our testing we've found Ninja to be a good 30% faster than MSVC's MSBuild |
@d3x0r For consistency reasons, I prefer to use Ninja+MSVC. But for some reason, I can't get a successful configure with cmake-js. The CMake tools extension for VSCode configures and builds flawlessly with the exact same project using Ninja+MSVC. Is there a way to let VSCode CMake Tools handle choosing the generator, build type, toolchain, etc while using cmake-js? Or maybe cmake-js should configure the same way VSCode CMake Tools does. |
So I've finally got Ninja+MSVC running smoothly. 2 things to note:
cmake-js really should have an option to disable adding its own |
re: rc...the issue here is that cmake searches the path for the resource compiler 'rc': cmake-js depends on the rc library. npm prepends the path with node_modules/.bin, so searching the path finds that version of rc. As stated above, you can define RC to fix that:
It would be nice to fix that within cmake-js, but I can't think of a way atm. Even if you get rid of rc, another library could pull it in. Here's a janky solution:
|
Great package! CMake-JS is lowering my entry into NodeJS from the native side.
Now, a feature request.
Right now, if you specify non MSVC generator in windows, the option is ignored (correct me if I'm wrong). Could it be possible to set up the MSVC path then use the user-specified generator?
This is specifically useful for those of us using Ninja compiler with MSVC.
Thanks and keep up with the great work!!
The text was updated successfully, but these errors were encountered: