One easy way to hack around this problem would be to use add_custom_command to invoke the rc.exe directly...<br><br><div>Not sure if you could just include a *.res file (output from rc) as a source in an add_library or add_executable call, though.</div>
<div><br></div><div>Worth a shot....</div><div><br></div><div><br><div class="gmail_quote">On Tue, Oct 20, 2009 at 3:20 PM, John Drescher <span dir="ltr">&lt;<a href="mailto:drescherjm@gmail.com">drescherjm@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">&gt; I am trying to add Windows versioning information to my project. I am<br>
&gt; using CMake 2.6.2 and VS2005.<br>
&gt;<br>
&gt; I have crafted a version.rc file which I use with all my libraries and<br>
&gt; executables. This is working well except for one library which has 94<br>
&gt; include directories, one greater than the 93 directory limit (lol)<br>
&gt; imposed by rc.exe, the Windows resource compiler.<br>
&gt;<br>
&gt; Thus, I am running into this issue:<br>
&gt;<br>
&gt; <a href="http://social.msdn.microsoft.com/forums/en-US/vcgeneral/thread/97be1e3a-82ec-430d-a260-d75ea173b62e" target="_blank">http://social.msdn.microsoft.com/forums/en-US/vcgeneral/thread/97be1e3a-82ec-430d-a260-d75ea173b62e</a><br>

&gt;<br>
&gt; Yes, the library probably could/should be refactored to get rid of this<br>
&gt; excessive number of include dirs, but that&#39;s not how it is today and I<br>
&gt; would prefer not to change it at this time.<br>
&gt;<br>
&gt; Has anyone hacked around this problem?<br>
&gt;<br>
<br>
</div>I have this in my main project. No, I have not found a good solution.<br>
I should have reported this months ago. Since I was busy at the time I<br>
just disabled the .rc and I have no icon..<br>
<br>
John M. Drescher<br>
<div><div></div><div class="h5">_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br></div>