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

Fixed linking on Linux and OS X.

This commit is contained in:
William Woodall 2012-08-01 20:09:39 -05:00
parent 485a9fb9a3
commit 871f32fcb2

View File

@ -73,8 +73,12 @@ macro(build_serial)
set(OTHER_LIBS "")
if(UNIX)
set(OTHER_LIBS util rt)
set(OTHER_LIBS util)
endif(UNIX)
if(UNIX AND NOT APPLE)
list(APPEND OTHER_LIBS rt pthread)
endif(UNIX AND NOT APPLE)
## Build the Serial Library