In project property > C/C++ > Optimization > Whole Program Optimization, I can set /GL.
Can I enable/disable the /GL in a shared property-sheet (.props file) and make many projects bases from it?
I have tried :-
<PropertyGroup>
<WholeProgramOptimization
Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
true
</WholeProgramOptimization>
However, it looks like there is no effect.
Do I really have to edit the property of each project manually?
I am using VS2017 Version 15.3.0.
Related: Visual Studio property sheets: Why is Character Set missing?
To do this setting using your own property sheet, this one must be included by the projects (.vcxproj) before the
Microsoft.Cpp.Default.props.Otherwise, the properties at the project level will looks good, but not the one used for the CL tasks of the .c(pp).
For example, assuming the following
D:\shared\my-customization.propssheet:To share them on your several projects, it must be included on theirs .vcxproj like this: