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

Brad King brad.king at kitware.com
Thu Sep 21 15:58:24 EDT 2006


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


More information about the CMake mailing list