diff --git a/serial.cmake b/serial.cmake index 6a0b125..431dd0f 100644 --- a/serial.cmake +++ b/serial.cmake @@ -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