diff --git a/plugin/src/CMakeLists.txt b/plugin/src/CMakeLists.txt index 6e67ab09b10db3ab3650845c668a35d7e063714e..52ce720225bb4ddb9d7b14eabc5c174108d0d2cb 100644 --- a/plugin/src/CMakeLists.txt +++ b/plugin/src/CMakeLists.txt @@ -10,6 +10,12 @@ if (CMAKE_COMPILER_IS_GNUCXX) ADD_DEFINITIONS(-fPIC) endif() +if (NOT WIN32) + TARGET_LINK_LIBRARIES(transport-plugin ${PROTOBUF_LIBRARIES} ${LOG4CXX_LIBRARIES}) +else() + TARGET_LINK_LIBRARIES(transport-plugin ${PROTOBUF_LIBRARIES} ${LOG4CXX_LIBRARIES} ws2_32.lib) +endif() + if (NOT WIN32) TARGET_LINK_LIBRARIES(transport-plugin ${PROTOBUF_LIBRARIES} ${LOG4CXX_LIBRARIES}) else()