[CMake] set “Whole Program Optimization”to Yes in VS 2005

xiada74 at sina.com xiada74 at sina.com
Tue Feb 9 21:51:28 EST 2010


 
When I use the blow statement for MSVC:
 
SET (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /GL")
 
The corresponding statement in the .vcproj file generated by CMake is:
 
AdditionalOptions=" /Zm1000 /GL"
 
When I open the property pages in VS 2005,I can see /GL on the page on command line, but the item of“Whole Program Optimization”on the page of Optimization is still No.
 
Why does not CMake generate WholeProgramOptimization="1" in the .vcproj file?
 
Thnaks!
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100210/b932f09d/attachment.htm>


More information about the CMake mailing list