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 <[email protected]> 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
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
