On Thu, Dec 11, 2008 at 3:05 PM, Andreas Pakulat <span dir="ltr"><<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">On 11.12.08 14:50:45, Robert Dailey wrote:<br>
> To elaborate, I'm specifically getting this error message:<br>
><br>
> CMake Error at vfx/CMakeLists.txt:74 (install):<br>
> install TARGETS given target "messenger" which does not exist in this<br>
> directory.<br>
><br>
> And this is what my INSTALL() command looks like:<br>
><br>
> install( TARGETS messenger ARCHIVE DESTINATION "${target_bin_dir}" )<br>
><br>
><br>
> I have no idea what the error message above means. At first I thought it was<br>
> due to the ordering in which I defined my projects, but I'm not sure that's<br>
> true. The 'messenger' project is defined in another sibling directory,<br>
> perhaps that is the issue?<br>
<br>
</div></div>Well, the error says exactly that, so there's not really a reason to not<br>
believe thats the case, is there ;) I wasn't aware of that, but apparently<br>
you can only install targets in the same CMakeLists.txt as they're defined.<br>
This kinda makes sense too, because it makes sure that all stuff thats done<br>
to a target is localized in one CMakeLists.txt.</blockquote></div><br>But nothing is "being done to" the messenger target. It's simply taking something from the already configured target and placing it into another target's binary output dir. I don't see the issue here. This feels like an arbitrary limitation.<br>