For my project, the only solution was to create a new configuration and inherit the original configuration:
'target_defaults': { 'configurations': { 'ChirpDebug' : { 'inherit_from': ['Debug'], 'msvs_settings': { 'VCCLCompilerTool': { 'RuntimeLibrary': '3' }, }, }, 'ChirpRelease' : { 'inherit_from': ['Release'], 'msvs_settings': { 'VCCLCompilerTool': { 'RuntimeLibrary': '2' }, }, }, },
and then use
msbuild /p:Configuration=ChirpDebug ....
I tried this solution with libuv and it works well. I don't know about node -gyp, but a similar approach should work.
source share