From ae7fdcf6a944be23ca31ccbd5602caaacbfb42aa Mon Sep 17 00:00:00 2001 From: Mathieu Malaterre Date: Fri, 10 Mar 2006 10:23:48 -0500 Subject: [PATCH] COMP: Fix cygwin build --- Source/kwsys/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt index 47c426945..f1ee84d5e 100644 --- a/Source/kwsys/CMakeLists.txt +++ b/Source/kwsys/CMakeLists.txt @@ -516,9 +516,9 @@ IF(KWSYS_C_SRCS OR KWSYS_CXX_SRCS) # If kwsys contains the DynamicLoader, need extra library IF(KWSYS_USE_DynamicLoader) ADD_LIBRARY(testDynload SHARED testDynload.c) - IF(UNIX) + IF(UNIX AND NOT CYGWIN) TARGET_LINK_LIBRARIES(${KWSYS_NAMESPACE} dl) - ENDIF(UNIX) + ENDIF(UNIX AND NOT CYGWIN) ENDIF(KWSYS_USE_DynamicLoader) # Apply user-defined target properties to the library.