[CMake] VS2005 all headers are excluded

John Drescher drescherjm at gmail.com
Fri Mar 13 17:12:39 EDT 2009


> cmake 2.6.3.
> There has been a number of modifications which have caused all headers in the generated project files .vcproj to be excluded frm build
> (the red minus sign next to the file in Solution explorer)
>
> I have searched from inside VStudio the string HEADER_ONLY (ignoring case) in all solution *cmake*.* files, nothing.
>
> 1 of the CMakeLists.txt looks like this
> ADD_CUSTOM_TARGET("..."
> SOURCES ..... ... .....
> )
>
> I don't believe there is a VStudio-wide option to exclude headers from builds.
>
> An example of a .vcproj looks like:
>               <Filter
>                       Name="Source Files"
>                       Filter="">
>                       <File
>                               RelativePath="....cpp">
>                       </File>
>               </Filter>
>               <Filter
>                       Name="Header Files"
>                       Filter="">
>                       <File
>                               RelativePath="....hpp">
>                               <FileConfiguration
>                                       Name="Debug|Win32" ExcludedFromBuild="true">
>                                       <Tool
>                                       Name="VCCLCompilerTool"
>                                       />
>                               </FileConfiguration>
>                               <FileConfiguration
>                                       Name="MinSizeRel|Win32" ExcludedFromBuild="true">
>                                       <Tool
>                                       Name="VCCLCompilerTool"
>                                       />
>                               </FileConfiguration>
>                               <FileConfiguration
>                                       Name="RelWithDebInfo|Win32" ExcludedFromBuild="true">
>                                       <Tool
>                                       Name="VCCLCompilerTool"
>                                       />
>                               </FileConfiguration>
>                               <FileConfiguration
>                                       Name="Release|Win32" ExcludedFromBuild="true">
>                                       <Tool
>                                       Name="VCCLCompilerTool"
>                                       />
>                               </FileConfiguration>
>                       </File>
>               </Filter>
>
>
> as you see, ExcludedFromBuild="true" is set to true for some reason.
> any clues,
> regards,
>
This is known and has been discussed several times this week. I
believe this was the result of a bug fix. I use vs2005 and it does not
cause me any problem that I notice. Does this cause you any problem?
Just wondering..


John


More information about the CMake mailing list