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)