[CMake] Linking 3rd party libraries

Nathan Paul nathanjpaul at gmail.com
Wed Jun 24 20:19:18 EDT 2009


Doesn't target_link_libraries only allow you to change the library used for
the configuration, not set the library path. Sure I could prepend the
correct path to the library, but it still doesn't change the library path.

On Tue, Jun 23, 2009 at 5:50 PM, Tyler Roscoe <tyler at cryptio.net> wrote:

> On Tue, Jun 23, 2009 at 04:41:09PM -0500, Nathan Paul wrote:
> > I'm building a shared library and have a 3rd party library whose output
> is
> > in the following folder structure:
> > lib/
> >     debug/
> >         <debug lib file>
> >     release/
> >         <release lib file>
> > Is it possible to change the linker path for different build
> configurations?
>
> Investigate the debug and optimized parameters of
> target_link_libraries().
>
> 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/20090624/2f4f711e/attachment.htm>


More information about the CMake mailing list