For unix and msbuild makefile generators I added the flags discussed in issue #16951.
Those simple changes - also taking care not to overwrite anything the user might define after -- command line option - would directly close #16951
--