missing ws2_32 linking

This commit is contained in:
Mathieu Malaterre 2012-01-28 15:32:28 +00:00
parent 02b906f6ad
commit 0ed7aa7c1b
1 changed files with 4 additions and 0 deletions

View File

@ -50,6 +50,10 @@ SET(LOCAL_SRCS
# Build the library # Build the library
ADD_LIBRARY(openjpip_local STATIC ${OPENJPIP_SRCS} ${LOCAL_SRCS}) ADD_LIBRARY(openjpip_local STATIC ${OPENJPIP_SRCS} ${LOCAL_SRCS})
TARGET_LINK_LIBRARIES(openjpip_local ${OPENJPEG_LIBRARY_NAME}) TARGET_LINK_LIBRARIES(openjpip_local ${OPENJPEG_LIBRARY_NAME})
IF(WIN32)
# add Winsock on windows+mingw
TARGET_LINK_LIBRARIES(openjpip_local ws2_32)
ENDIF(WIN32)
# Install library # Install library
INSTALL(TARGETS openjpip_local INSTALL(TARGETS openjpip_local