Update CMakeLists.txt

This commit is contained in:
Zoltan Csizmadia 2016-03-06 08:25:42 -06:00
commit 1ebbd2dba3

View file

@ -42,10 +42,10 @@ endif()
if(WIN32)
list(APPEND DEPLIBS ws2_32 iphlpapi)
else()
check_library_exists(pthread pthread_create "" HAVE_LIBTHREAD)
check_library_exists(socket getaddrinfo "" HAVE_LIBSOCKET)
check_library_exists(pthread pthread_create "" HAVE_LIBPTHREAD)
check_library_exists(rt clock_gettime "" HAVE_LIBRT)
if (HAVE_LIBTHREAD)
check_library_exists(socket getaddrinfo "" HAVE_LIBSOCKET)
if (HAVE_LIBPTHREAD)
list(APPEND DEPLIBS pthread)
endif()
if (HAVE_LIBRT)