[CMake] Library dependencies

Nathan Paul nathanjpaul at gmail.com
Fri Jun 26 18:07:53 EDT 2009


LINK_INTERFACE_LIBRARIES was exactly what I needed. Thanks!
As for moving the .lib that was generated for the .dll, I've made piece with
keeping that at its default output location. CMake is smarter with linking
than I originally thought.


On Fri, Jun 26, 2009 at 12:28 AM, Tyler Roscoe <tyler at cryptio.net> wrote:

> On Thu, Jun 25, 2009 at 09:54:11PM -0500, Nathan Paul wrote:
> > When I tell MessageTest to link to Messages (using target_link_libraries
> and
> > specifying the Messages library), the Google Protocol Buffer library is
> > added as a dependency. This is undesired, since the library is already
> > linked statically to the Messages library, and is not directly needed by
> the
>
> It's past my bedtime but I think you want to play with
> LINK_INTERFACE_LIBRARIES:
>
>
> http://www.cmake.org/cmake/help/cmake2.6docs.html#prop_tgt:LINK_INTERFACE_LIBRARIES
>
> > MessageTest executable. Also, the .lib file generated by the build does
> not
> > get placed into Build/bin, which is what I would like. What is the best
> way
> > to do this?
>
> Look at ARCHIVE_OUTPUT_DIRECTORY.
>
> tyler
>



-- 
Nathan Paul
http://nathan.effigyband.net
262.378.1007
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090626/f68ec336/attachment.htm>


More information about the CMake mailing list