[CMake] find windows libraries from within cygwin

James Bigler jamesbigler at gmail.com
Wed Sep 17 13:19:58 EDT 2008


I noticed that while running the cygwin version of CMake 2.6.0 the
following variables are set:

CMAKE_FIND_LIBRARY_SUFFIXES = .dll;.dll.a;.a
CMAKE_FIND_LIBRARY_PREFIXES = cyg;lib

Is there a reason why they couldn't be set to this:

# Adds .lib to the list
CMAKE_FIND_LIBRARY_SUFFIXES = .dll;.dll.a;.a;.lib
# Adds "" to the list
CMAKE_FIND_LIBRARY_PREFIXES = cyg;lib;

I believe that .lib files can be linked against using cygwin gcc.

Thanks,
James


More information about the CMake mailing list