From 871f32fcb2cdfba04d635a63e6672002539e40d6 Mon Sep 17 00:00:00 2001 From: William Woodall Date: Wed, 1 Aug 2012 20:09:39 -0500 Subject: [PATCH] Fixed linking on Linux and OS X. --- serial.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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