Ilya Shvetsov wrote:

Any one can help me with this problem?

--
Ilya Shvetsov
KranX Productions

On Fri, 11 Apr 2008 17:53:29 +0300, Ilya Shvetsov <[EMAIL PROTECTED]> wrote:

        Hi, all.
I use cmake 2.4.8 on Windows XP with MSVC 2005 and Cygwin installed.

I have two versions of lib "A".

First one for MSVC - A.lib
Second one for gcc - libA.a

To find lib "A" I type this command
FIND_LIB(LIB_A A PATHS ${LIB_PATHS})

For NMake Generator all work fine. For "Unix Makefiles" Generator cmake
can't find library.
I tried to find problem and found this for "Unix Makefiles" Generator

CMAKE_FIND_LIBRARY_PREFIXES =
CMAKE_FIND_LIBRARY_SUFFIXES = .lib


What I do wrong. May be I must give some hint to cmake.

I use this command lines to generate makefiles

"cmake -G"NMake Makefiles" .." - for MSVC
"cmake -G"Unix Makefiels" .."  - for Cygwin gcc


For cygwin, you should use a cygwin built cmake. The unix makefiles is more for using cl with gmake.

-Bill
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to