<div class="gmail_quote">On Tue, Jun 26, 2012 at 5:29 PM, David Cole <span dir="ltr"><<a href="mailto:david.cole@kitware.com" target="_blank">david.cole@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Tue, Jun 26, 2012 at 5:51 PM, Robert Dailey <<a href="mailto:rcdailey.lists@gmail.com">rcdailey.lists@gmail.com</a>> wrote:<br>
> I'm including a Windows resource file (*.rc) in my add_executable() command,<br>
> but in VS2003 the build fails with RC1102 because all of my include<br>
> directories (and there are a TON) are being added to the resource file when<br>
> it is compiled. I don't need the include directories for the resource files,<br>
> so how can I remove them from only the RC files?<br>
><br>
> I know 2.8.8 has include directories as a target property, but can I use<br>
> this as a source property, and just set it to blank to erase the include<br>
> dirs?<br>
><br>
<br>
</div></div>No, at this point, it's only a target property, not a source property.<br>
<br>
The best way around this problem, while it's not an easy solution, is<br>
to reduce the number of your include directories.<br>
<br>
Has anybody else out there worked around this problem in another way?</blockquote><div><br></div><div>I have a complex system in place that makes dependency include directories transitive (much like how library dependencies behave in CMake, except the same logic does not exist for include directories). Unfortunately I won't be able to reliably cut down on the number of include directories without potentially breaking the code.</div>
</div>