[Cmake] FIND_LIBRARY : question about name

Andy Cedilnik andy.cedilnik at kitware.com
Mon, 26 Apr 2004 11:17:04 -0400


Hi,

I am pretty sure this was fixed in CVS CMake. What version are you
using?

			Andy

On Mon, 2004-04-26 at 11:02, William A. Hoffman wrote:
> 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.