COMP: Fix cygwin build

This commit is contained in:
Mathieu Malaterre 2006-03-10 10:23:48 -05:00
parent fe6fc8192c
commit ae7fdcf6a9
1 changed files with 2 additions and 2 deletions

View File

@ -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.