From c3fb62a7d0d807392d7375fa646aa143a5fb3892 Mon Sep 17 00:00:00 2001 From: John Harrison Date: Mon, 6 Feb 2012 22:49:36 -0600 Subject: [PATCH] Missing a linked library on linux --- serial.cmake | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/serial.cmake b/serial.cmake index 0b6e5f4..ed63438 100644 --- a/serial.cmake +++ b/serial.cmake @@ -66,11 +66,17 @@ macro(build_serial) # Add default header files set(SERIAL_HEADERS include/serial/serial.h) + + set(OTHER_LIBS "") + if(UNIX) + set(OTHER_LIBS util) + endif(UNIX) + ## Build the Serial Library # Compile the Library add_library(serial ${SERIAL_SRCS}) - target_link_libraries(serial ${CMAKE_THREAD_LIBS_INIT}) + target_link_libraries(serial ${CMAKE_THREAD_LIBS_INIT} ${OTHER_LIBS}) ## Build Examples