<tt><font size=2>&gt; From: Michael Wild &lt;themiwi@gmail.com&gt;</font></tt>
<br><tt><font size=2>&gt; To: cmake@cmake.org</font></tt>
<br><tt><font size=2>&gt; Date: 05/25/2011 10:08 PM</font></tt>
<br><tt><font size=2>&gt; Subject: Re: [CMake] Cannot find source file:
*.rc</font></tt>
<br><tt><font size=2>&gt; Sent by: cmake-bounces@cmake.org</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; On 05/25/2011 11:40 PM, Aaron_Wright@selinc.com wrote:<br>
&gt; &gt; I use mc.exe to generate an *.rc file and some headers for my
program.<br>
&gt; &gt; The *.rc file is listed as an output of a custom command and
as a source<br>
&gt; &gt; to an executable. During configuration CMake tells me it can't
find a<br>
&gt; &gt; source file and lists the *.rc file. I've check the generated
property<br>
&gt; &gt; of the *.rc file and it is true, so why does CMake expect it
to be<br>
&gt; &gt; present during configuration?<br>
&gt; &gt; <br>
&gt; &gt; I've tried to make a small example, but when I try to do that
everything<br>
&gt; &gt; works. What I'm looking for is a reason why it would only effect
large<br>
&gt; &gt; build systems on not small build system, or why does this only
effect<br>
&gt; &gt; this *.rc and none of the other twenty or thirty files I generate?
Is<br>
&gt; &gt; there something special about *.rc files?<br>
&gt; &gt; <br>
&gt; &gt; I'm really just grabbing at straws here because I've been trying
to fix<br>
&gt; &gt; this for months, with no luck. So any ideas are welcome.<br>
&gt; &gt; <br>
&gt; &gt; ---<br>
&gt; &gt; Aaron Wright<br>
&gt; <br>
&gt; Is the add_custom_command call generating the *.rc file in the same<br>
&gt; directory as your add_executable call?<br>
&gt; <br>
&gt; Michael</font></tt>
<br>
<br><tt><font size=2>It is neither in the same CMakeLists.txt nor is the
*.rc file generated anywhere close to the executable.</font></tt>
<br>
<br><tt><font size=2>I did work around this by writing a dummy file at
configure time with FILE(WRITE. Thought that seems a little hacky.</font></tt>