Update CMakeLists.txt

This commit is contained in:
Zoltan Csizmadia 2016-03-06 08:24:25 -06:00
commit 461e6a4e5d

View file

@ -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)