]> Git Repo - serial.git/commitdiff
Fixed linking on Linux and OS X.
authorWilliam Woodall <[email protected]>
Thu, 2 Aug 2012 01:09:39 +0000 (20:09 -0500)
committerWilliam Woodall <[email protected]>
Thu, 2 Aug 2012 01:09:39 +0000 (20:09 -0500)
serial.cmake

index 6a0b1259a61793f8a2406dedf5e12d53dbeb99f1..431dd0fdec5b742049c26c5cea625690ef72a9bf 100644 (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
 
This page took 0.026294 seconds and 4 git commands to generate.