<div class="gmail_quote">On Thu, Mar 12, 2009 at 10:34 PM, Claus Höfele <span dir="ltr"><<a href="mailto:claus@claushoefele.com">claus@claushoefele.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi everyone,<br>
<br>
I've recently switched to cmake to generate Visual Studio project<br>
files for a project of mine and it's working great so far.<br>
<br>
One issue that bugs me is that header files end up being disabled in<br>
Visual Studio (Excluded From Build property is set for the header<br>
files). This prevents Visual Studio from syntax checking these files,<br>
which is quite a bummer for me because I have a lot of inline code in<br>
my header files.<br>
<br>
Setting the property HEADER_FILE_ONLY to false doesn't work because<br>
the code in cmSourceFile::CheckExtension() forces this property to<br>
true for headers files. The generator for Visual Studio then<br>
automatically disables the file when it writes the project file.<br>
<br>
For Visual Studio, this behaviour doesn't make much sense because<br>
header files are not compiled anyway. At the very minimum, I should be<br>
able to override this setting.<br>
<br>
I wonder if there's a workaround for this problem without resorting to<br>
building my own cmake executable.</blockquote><div><br>What version of CMake and Visual Studio are you using?<br></div></div><br>-- <br>Philip Lowman<br>