[CMake] Shared Libraries & dependencies

Robert Dailey rcdailey at gmail.com
Thu Dec 11 16:13:11 EST 2008


On Thu, Dec 11, 2008 at 3:05 PM, Andreas Pakulat <apaku at gmx.de> wrote:

> On 11.12.08 14:50:45, Robert Dailey wrote:
> > To elaborate, I'm specifically getting this error message:
> >
> > CMake Error at vfx/CMakeLists.txt:74 (install):
> >   install TARGETS given target "messenger" which does not exist in this
> >   directory.
> >
> > And this is what my INSTALL() command looks like:
> >
> > install( TARGETS messenger ARCHIVE DESTINATION "${target_bin_dir}" )
> >
> >
> > I have no idea what the error message above means. At first I thought it
> was
> > due to the ordering in which I defined my projects, but I'm not sure
> that's
> > true. The 'messenger' project is defined in another sibling directory,
> > perhaps that is the issue?
>
> Well, the error says exactly that, so there's not really a reason to not
> believe thats the case, is there ;) I wasn't aware of that, but apparently
> you can only install targets in the same CMakeLists.txt as they're defined.
> This kinda makes sense too, because it makes sure that all stuff thats done
> to a target is localized in one CMakeLists.txt.


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081211/0d002693/attachment.htm>


More information about the CMake mailing list