Compiler option stripped by Visual Studio generator?

The VS generators parse out flags known to map to specific .vcxproj settings, and generate the settings instead. Both /W4 and /Wall map to the WarningLevel setting. The last one wins, just as /W3 /W4 would choose the latter in a direct cl command-line invocation.