diff --git a/Modules/FindFLTK.cmake b/Modules/FindFLTK.cmake index d43d95cf2..acad239c5 100644 --- a/Modules/FindFLTK.cmake +++ b/Modules/FindFLTK.cmake @@ -36,7 +36,13 @@ FIND_PATH(FLTK_INCLUDE_DIR FL/Fl.h # Platform dependent libraries required by FLTK IF(WIN32) - SET( FLTK_PLATFORM_DEPENDENT_LIBS wsock32 comctl32 ) + IF(NOT CYGWIN) + IF(BORLAND) + SET( FLTK_PLATFORM_DEPENDENT_LIBS import32 ) + ELSE(BORLAND) + SET( FLTK_PLATFORM_DEPENDENT_LIBS wsock32 comctl32 ) + ENDIF(BORLAND) + ENDIF(NOT CYGWIN) ENDIF(WIN32) IF(UNIX)