From a726a78c553fb706366d82203ad9a7700ff26e1e Mon Sep 17 00:00:00 2001 From: William Woodall Date: Mon, 4 Jul 2011 10:46:03 -0500 Subject: [PATCH] Fixing a bug/patch submitted by d.suvorov90@gmail.com for linking on Windows. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index da9e349..f0ce64e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,6 +49,9 @@ set(SERIAL_LINK_LIBS ${Boost_SYSTEM_LIBRARY} # Compile the Library add_library(serial ${SERIAL_SRCS} ${SERIAL_HEADERS}) target_link_libraries(serial ${SERIAL_LINK_LIBS}) +IF( WIN32 ) + target_link_libraries(serial wsock32) +ENDIF( ) # Check for OS X and if so disable kqueue support in asio IF(CMAKE_SYSTEM_NAME MATCHES Darwin)