[Cmake] FIND_LIBRARY : question about name

ibiris at genius.org.br ibiris at genius.org.br
Fri, 23 Apr 2004 10:15:04 -0400




Hello folks,

recently I tried to use FIND_LIBRARY to check if a library required to
build  another library is already available or it has to be built first.

The problem I have is that the name of the library is libx.a in cygwin but
just x.lib on windows. Using just

FIND_LIBRARY(varname NAMES x PATHS < bunch o' paths here> )

works ok on windows but on cygwin it causes an error, since it cannot find
the libx (instead of x). Can someone verify if I need to search for a
different name in  cygwin / windows / Linux?  I would expect that 'x' marks
the name that is used for linking so it should look for x.lib on windows
and libx.a for linux/cygwin.

Maybe I am missing something so your help would be greatfully appreciated.

Kind regards,

----
Ilias Biris, Ph.D.
Senior Researcher
Genius Instituto de Tecnologia
TEL: +55 (0)92 6146503
FAX: +55 (0)92 6133144
http://www.genius.org.br/
**************************************************************************************************

O conteúdo desse e-mail ou de seus anexos são confidenciais e restritos ao 
destinatário da mensagem.
Se você recebeu esse e-mail por engano, por favor notifique o remetente 
imediatamente e não faça cópias ou distribua seu conteúdo para ninguém.

**************************************************************************************************

The contents of this email and any attachments are confidential.
They are intended for the named recipient(s) only.
If you have received this email in error please notify the system manager or  the 
sender immediately and do not disclose the contents to anyone or make copies.

**************************************************************************************************