[Cmake] FIND_LIBRARY : question about name

William A. Hoffman billlist at nycap.rr.com
Mon, 26 Apr 2004 11:02:15 -0400


The cygwin cmake looks for libx for me?
Can you give an example?  


If this did not work, then cmake itself would not build under cygwin,
since it needs to find curses and form libraries:

CURSES_LIBRARY:FILEPATH=/usr/lib/libcurses.a
//Where can the form library be found
FORM_LIBRARY:FILEPATH=/usr/lib/libform.a

-Bill

At 10:15 AM 4/23/2004, ibiris at genius.org.br wrote:




>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.
>
>**************************************************************************************************
>_______________________________________________
>Cmake mailing list
>Cmake at www.cmake.org
>http://www.cmake.org/mailman/listinfo/cmake