[CMake] Extensionless Headers, and Non-compiled SOURCE_GROUP files

Jacob Foshee jacobf at gmail.com
Thu Sep 21 17:51:23 EDT 2006


That fixed it.  Well done!  The vcproj looks much cleaner now.
(-=

On 9/21/06, Brad King <brad.king at kitware.com> wrote:
>
> Jacob Foshee wrote:
> > Howdy,
> > I'm helping out with the CMake build for OpenSceneGraph.  OSG follows
> > the standard practice of using extensionless headers for common
> > interfaces.  We would like all headers to show up in the project files
> > (e.g. vcproj).  For the SOURCE_GROUP command to work, the files must be
> > listed in the ADD_EXECUTABLE or ADD_LIBRARY command (as far as I can
> tell).
> >
> > This leads to a problem.  I think this is a bug.  I think CMake doesn't
> > know how to handle the extensionless files, so attempts to add build
> > rules to some of them (at least with VC8).  Others, it does not.  I
> > don't know why some get the rules and some don't (this inconsistency
> > seems to be a problem with cpp files as well).  Here is an excerpt from
> > a vcproj illustrating the problem:
> > ~~~
> >             <File
> >
> > RelativePath="C:\...\Producer\include\Producer\BlockingQueue">
> >             </File>
> >             <File
> >                 RelativePath="C:\...\Producer\include\Producer\Camera">
> >                 <FileConfiguration
> >                     Name="Debug|Win32">
> >                     <Tool
> >                     Name="VCCLCompilerTool"
> >                     ObjectFile="$(IntDir)/__/__/."
> >                     />
> >                 </FileConfiguration>
>
> I think this bug has been fixed and will not be in 2.4.4.  See here:
>
> http://www.cmake.org/pipermail/cmake/2006-September/011216.html
>
> Please try CVS CMake and let me know if it is fixed.
>
> Thanks,
> -Brad
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20060921/c405bb4c/attachment.htm


More information about the CMake mailing list