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