mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-22 11:44:53 +08:00
Fixed linking on Linux and OS X.
This commit is contained in:
parent
485a9fb9a3
commit
871f32fcb2
@ -73,8 +73,12 @@ macro(build_serial)
|
|||||||
|
|
||||||
set(OTHER_LIBS "")
|
set(OTHER_LIBS "")
|
||||||
if(UNIX)
|
if(UNIX)
|
||||||
set(OTHER_LIBS util rt)
|
set(OTHER_LIBS util)
|
||||||
endif(UNIX)
|
endif(UNIX)
|
||||||
|
|
||||||
|
if(UNIX AND NOT APPLE)
|
||||||
|
list(APPEND OTHER_LIBS rt pthread)
|
||||||
|
endif(UNIX AND NOT APPLE)
|
||||||
|
|
||||||
## Build the Serial Library
|
## Build the Serial Library
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user