[CMake] Link question

2007-11-12 Thread Xavier Larrode

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

Thanks
begin:vcard
fn;quoted-printable:Xavier Larrod=C3=A9
n;quoted-printable:Larrod=C3=A9;Xavier
org:IRISA ;E119 Orange
title:Projet GVT
tel;work:+33 2 99 84 73 28
version:2.1
end:vcard

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Link question

2007-11-12 Thread Pau Garcia i Quiles

Quoting Xavier Larrode [EMAIL PROTECTED]:


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

Thanks


Have you tried with SET_TARGET_PROPERTIES?


--
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Link question

2007-11-12 Thread Alexander Neundorf
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.

Alex
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Link question

2007-11-12 Thread Juan Sanchez
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@cmake.org
 http://www.cmake.org/mailman/listinfo/cmake
 
 


-- 
Juan Sanchez
[EMAIL PROTECTED]
800-538-8450 Ext. 54395
512-602-4395


___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake