[CMake] VCProj Files: Precompiled headers

Ryan Connelly Ryan_Connelly at intercept.com
Mon Jul 17 15:15:05 EDT 2006


I am glad that speedy posted that fix. I am in the process of patching 
my cmake build and compiling for vs2005.

I hope that this patch or a similar fix is added to the next stable version of CMAKE. It would make our lives easier for sure. Thanks again speedy.

Ryan

speedy wrote:
> Hello Peter,
>
> Thursday, July 13, 2006, 11:04:38 PM, you wrote:
>
> PK> Oh really.  Cool because I just submitted a bug and tried fixing
> PK> it myself.  I got about 1/2 way there wil Brad's help, then I was
> PK> stumped when I got to the "PreCompiledHeaderThrough" setting.  I
> PK> believe that the cmakelist file must specify it somewhere, but I'm
> PK> not quite sure how to handle that.  Is your post in the trunk code line?
>
> Please check out my patch. It adds xml pch support on per file & per
> target level ... except for VC++ automatic pch generation which is
> broken.
>
> I didn't do "PreCompiledHeaderThrough" because I didn't need it. In
> short, there are few ways to do it - you can simply parse the command
> line option arguments, or the proper way to do some kind of
> generalization like SET_PRECOMPILED_HEADER(...) across archs. &
> introduce the automatic .pch path generation, thus enabling the
> out-of-tree builds. :)
>
> DISCLAIMER: These are theoretical conjectures as I am a cmake newbie -
> please excuse any obvious oversights.
>
> PK> http://www.cmake.org/Bug/bug.php?op=show&bugid=3512&pos=0
>
>
> PK> On 7/13/06,  speedy <speedy at 3d-io.com> wrote:
> PK> Hello Peter, 
>
> PK>       you're lucky - check the mail-list archives of this month :)
> PK>       I've posted a patch for precompiled headers support for VS.NET
> PK>       2003. :)
>
> PK> Thursday, July 13, 2006, 8:40:48 PM, you wrote: 
>
> BK>> Peter Kahn wrote:
>   
>>>> I noticed that there is no support for the xml generation for this and a
>>>> bunch of other options in the VS.NET < http://VS.NET> 2003  vcproj
>>>> files.  If all the xml settings correspond to command line switches,
>>>> then I can determine the switches and set them in the CMAKE_CXX_FLAGS
>>>> variable.
>>>>         
>  >>>
>   
>>>> Is this the standard solution for areas of the xml not currently handled
>>>> by cmake?
>>>>         
>
> BK>> No, but you can submit a patch to the bug tracker to add more options.
> BK>> The flag-to-xml-attribute map is here: 
>
> BK>> http://www.cmake.org/cgi-bin/viewcvs.cgi/Source/cmLocalVisualStudio7Generator.cxx?root=CMake&view=markup 
>
> BK>> See the cmLocalVisualStudio7GeneratorFlagTable table.
>
> BK>> -Brad
> BK>> _______________________________________________
> BK>> CMake mailing list
> BK>>  CMake at cmake.org
> BK>> http://www.cmake.org/mailman/listinfo/cmake
>
>
>
> PK> --
> PK> Best regards,
> PK>  speedy                            mailto: speedy at 3d-io.com
>
>
>
>
>
>
>
>
>   

-- 
----------------------------------------------------------------------------
Ryan Connelly
Software Engineer                            (404)352-0111 (ext. 965)  (Tel)
Intercept Technology Inc.                    (404)352-3744             (Fax)
Ryan_Connelly at Intercept.com                  http://www.intercept.com
Intercept Design Group                       http://InterceptDG.org



More information about the CMake mailing list