[CMake] Linking 3rd party libraries

Brad King brad.king at kitware.com
Thu Jun 25 16:08:13 EDT 2009


Nathan Paul wrote:
> 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.

Specifying libraries by full path is the preferred method.

-Brad

> On Tue, Jun 23, 2009 at 5:50 PM, Tyler Roscoe <tyler at cryptio.net 
> <mailto: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
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 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



More information about the CMake mailing list