From 461e6a4e5d8cf0fa2141c0d3efae0c912a5ab49a Mon Sep 17 00:00:00 2001 From: Zoltan Csizmadia Date: Sun, 6 Mar 2016 08:24:25 -0600 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 672069a..a9d3650 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,11 +42,11 @@ endif() if(WIN32) list(APPEND DEPLIBS ws2_32 iphlpapi) else() - check_library_exists(pthreads pthread_create "" HAVE_LIBTHREAD) + check_library_exists(pthread pthread_create "" HAVE_LIBTHREAD) check_library_exists(socket getaddrinfo "" HAVE_LIBSOCKET) check_library_exists(rt clock_gettime "" HAVE_LIBRT) - if (HAVE_LIBTHREADS) - list(APPEND DEPLIBS pthreads) + if (HAVE_LIBTHREAD) + list(APPEND DEPLIBS pthread) endif() if (HAVE_LIBRT) list(APPEND DEPLIBS rt)