diff --git a/CMakeLists.txt b/CMakeLists.txt index eada3dc31..a1d411060 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -177,7 +177,7 @@ if(UNIX) else(APPLE) set(NATS_OS "LINUX") set(NATS_USE_PTHREAD "-pthread") - set(NATS_EXTRA_LIB "rt") + set(NATS_EXTRA_LIB "rt -lpthread") endif(APPLE) if (${NATS_BUILD_ARCH} MATCHES "32") if(NOT APPLE)