[CMake] Link question
Juan Sanchez
Juan.Sanchez at amd.com
Mon Nov 12 13:49:38 EST 2007
Alexander Neundorf wrote:
> On Monday 12 November 2007, Xavier Larrode wrote:
>> Hi all,
>> Is there a way in cmake to link (in linux) to a .so lib wich is not
>> prefix by lib.
>> So link to a lib without the -lmyLib
>
> To a library which is already installed on the system ?
> I think this doesn't work, the linker won't find the file mylib.so if you (or
> cmake) say "-lmylib".
Try using the full path and name of the lib you'd like to add in the
TARGET_LINK_LIBRARIES command.
I've done this before with external libraries, and I think at least one
of them may not have had the lib prefix.
If that doesn't work, try SET_TARGET_PROPERTIES with the LINK_FLAGS you
want.
Juan
>
> Alex
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
>
--
Juan Sanchez
Juan.Sanchez at amd.com
800-538-8450 Ext. 54395
512-602-4395
More information about the CMake
mailing list