-
Notifications
You must be signed in to change notification settings - Fork 146
Fixed auto generator selection on windows #178
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
Conversation
@nik-m2 thanks, for doing the work! In principle this is a much better and thorough solution than the quick fix proposed in #171 (will close it if this gets merged). However, ignoring the VC++ Build Tools Workload would be a showstopper for me, because none of the nodejs only developers in my Team need nor want a full Visual Studio installation which is also the case for (transitive) package consumers and CI environments. Furthermore this would make the cursed but widely used windows-build-tools unusable with cmake-js. |
@BurningEnlightenment No problem! I'm glad you like my solution. I love deleting code 😈 That's great to know I don't need the full Visual Studio version, I have only testing a few work flows. Do you know if I didn't run into any technical problems, just haven't used it before. I mentioned it in case it would be a problem, so go ahead by all means! EDIT: I added the check for the C++ build tools, but unfortunately EDIT2: Added a check for One easy solution at this point would be to add a or Use the old method as a fallback |
It got kinda complicated in the end. Please help me on verify this. If you have a complete VS or just build tools installation at hand tell us the results there. |
@unbornchikken With what I currently have I am able to detect a full installation only. I added detecting This would probably work best if I dropped the The overall effect of this PR would then simply added better support for people who do have |
Fixes #168
Credit to @BurningEnlightenment for the
vswhere
command execution code.This PR takes the approach of ignoring the "C++ Build Tools" Visual Studio workload during the
cmake-js
dependency check stage.To include a message, warning users they don't have the dependency one of the following could be done: