missing ws2_32 linking
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Sat, 28 Jan 2012 15:32:28 +0000 (15:32 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Sat, 28 Jan 2012 15:32:28 +0000 (15:32 +0000)
applications/jpip/libopenjpip/CMakeLists.txt

index cb774ad788efde5dc19123051ee6deb8b8a3aa21..dfb75fd7979c2000199946c12f6df639f965f338 100644 (file)
@@ -50,6 +50,10 @@ SET(LOCAL_SRCS
 # Build the library
 ADD_LIBRARY(openjpip_local STATIC ${OPENJPIP_SRCS} ${LOCAL_SRCS})
 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(TARGETS openjpip_local