Add special logic to map this flag to a top-level build setting instead of being in ClCompile. Fixes: #18426