link to lib which have same name as binary

William A. Hoffman billlist at nycap.rr.com
Thu Mar 9 15:18:12 CET 2006


At 02:57 AM 3/9/2006, Laurent Montel wrote:
>Hi,
>I think that there is a bug.
>If we try to link a binary with a lib which have same name (as into 
>kdepim/ktnef) it doens't link
>
>Lib name is libktnef.so.0
>et binary is ktnef.
>=> we use this line:
>target_link_libraries(ktnef  ${LIB_KDEUI} ktnef )
>(not into same directory)
>
>Do you have an idea to fix it ?
>Could you explain specificaly a path of lib ?

Two targets can not have the same name.  So you have to call them
different things.   One ktnef and one ktneflib.  You can then
use the target property OUTPUT_NAME to give them the same name
at link time.  This is a restriction from Visual Stuido IDE and Xcode.


-Bill



More information about the Kde-buildsystem mailing list