1
0
mirror of https://github.com/wjwwood/serial.git synced 2026-01-22 19:54:57 +08:00

Fixing a bug/patch submitted by d.suvorov90@gmail.com for linking on Windows.

This commit is contained in:
William Woodall 2011-07-04 10:46:03 -05:00
parent 7dbd1d53a6
commit a726a78c55

View File

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