<div class="gmail_quote">On Mon, May 14, 2012 at 3:45 PM, Bill Hoffman <span dir="ltr"><<a href="mailto:bill.hoffman@kitware.com" target="_blank">bill.hoffman@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 5/14/2012 2:26 PM, Robert Dailey wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
No one has anything to say about this?<br></div><div class="im">
CMake seems to do more than just add them as general compiler flags,<br>
it seems to know exactly which attributes in the VCPROJ XML are<br>
mapped to their respective command line alternatives, and uses the<br>
appropriate ones. If this is true, why do we not have a dedicated<br>
target & source file property that I can use to enable precompiled<br>
headers instead of using these command line strings directly? Am I<br>
misunderstanding something?<br>
<br>
</div></blockquote>
Nothing magic going on. With VS 2010 and greater, there is a python script that creates a flag mapping table from MS xml:<br>
<br>
<a href="http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmparseMSBuildXML.py;h=4877e5913436dcf117580db286566b4f9568fc20;hb=HEAD" target="_blank">http://cmake.org/gitweb?p=<u></u>cmake.git;a=blob;f=Source/<u></u>cmparseMSBuildXML.py;h=<u></u>4877e5913436dcf117580db286566b<u></u>4f9568fc20;hb=HEAD</a><br>
cmparseMSBuildXML.py<br>
<br>
So, nothing specific was done for pre-compiled headers. To have them work cross platform is very difficult because of the wide variety in API by the compilers out there.</blockquote><div><br></div><div>I'm seeing this behavior in VS 2003 and VS 2008 as well. Is the same script used by CMake for these generators too? It's working somehow... </div>
</div>