link to lib which have same name as binary

Laurent Montel montel at kde.org
Thu Mar 9 15:50:57 CET 2006


On Thursday 09 March 2006 15:18, William A. Hoffman wrote:
> 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

Thanks a lot now it works fine.
Regards


More information about the Kde-buildsystem mailing list