[CMake] VS2005 all headers are excluded
Hicham Mouline
hicham at mouline.org
Fri Mar 13 16:58:56 EDT 2009
Hello,
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,
More information about the CMake
mailing list