<P class=MsoNormal><FONT face=Arial size=1><SPAN lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Arial">When I use the blow statement for MSVC:<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=1><SPAN lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=simsun size=2><SPAN lang=EN-US style="FONT-SIZE: 10.5pt; FONT-FAMILY: simsun">SET (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /GL")<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=simsun size=2><SPAN lang=EN-US style="FONT-SIZE: 10.5pt; FONT-FAMILY: simsun"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=simsun size=2><SPAN lang=EN-US style="FONT-SIZE: 10.5pt; FONT-FAMILY: simsun">The corresponding statement in the .vcproj file generated by CMake is:<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=simsun size=2><SPAN lang=EN-US style="FONT-SIZE: 10.5pt; FONT-FAMILY: simsun"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=simsun size=2><SPAN lang=EN-US style="FONT-SIZE: 10.5pt; FONT-FAMILY: simsun">AdditionalOptions=" /Zm1000 /GL"<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=simsun size=2><SPAN lang=EN-US style="FONT-SIZE: 10.5pt; FONT-FAMILY: simsun"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=simsun size=2><SPAN lang=EN-US style="FONT-SIZE: 10.5pt; FONT-FAMILY: simsun">When I open the property pages in VS 2005</SPAN></FONT><FONT face=宋体><SPAN style="FONT-FAMILY: 宋体">,</SPAN></FONT><FONT face=simsun><SPAN lang=EN-US style="FONT-FAMILY: simsun">I can see /GL&nbsp;on the page&nbsp;on command line, but the item of</SPAN></FONT><FONT face=宋体><SPAN style="FONT-FAMILY: 宋体">“</SPAN></FONT><FONT face=simsun><SPAN lang=EN-US style="FONT-FAMILY: simsun">Whole Program Optimization</SPAN></FONT><FONT face=宋体><SPAN style="FONT-FAMILY: 宋体">”on the page&nbsp;of Optimization </SPAN></FONT><FONT face=simsun><SPAN lang=EN-US style="FONT-FAMILY: simsun">is still No.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=simsun size=2><SPAN lang=EN-US style="FONT-SIZE: 10.5pt; FONT-FAMILY: simsun"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=simsun size=2><SPAN lang=EN-US style="FONT-SIZE: 10.5pt; FONT-FAMILY: simsun">Why does not CMake generate WholeProgramOptimization="1" in the .vcproj file?</SPAN></FONT></P>
<P class=MsoNormal><FONT face=simsun size=2><SPAN lang=EN-US style="FONT-SIZE: 10.5pt; FONT-FAMILY: simsun"></SPAN></FONT>&nbsp;</P>
<P class=MsoNormal><FONT face=simsun size=2><SPAN lang=EN-US style="FONT-SIZE: 10.5pt; FONT-FAMILY: simsun">Thnaks!<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=simsun size=2><SPAN lang=EN-US style="FONT-SIZE: 10.5pt; FONT-FAMILY: simsun"><o:p>&nbsp;</o:p></SPAN></FONT></P>