testing: ++
[awesomized/libmemcached] / CMake / _Include.cmake
index 41077574258e89dff776e61a9b6441561348cee6..a1bd2e49307281b5a29a56e42e1d6458de6c1d13 100644 (file)
@@ -54,6 +54,10 @@ endif()
 
 ## uuid
 if(BUILD_TESTING)
+    if(NOT MEMCACHED_BINARY)
+        find_package(Memcached)
+        set(MEMCACHED_BINARY ${MEMCACHED_EXECUTABLE})
+    endif()
     check_dependency(LIBUUID uuid uuid/uuid.h)
 endif()
 
@@ -109,8 +113,8 @@ check_decl(htonll arpa/inet.h)
 check_decl(MSG_DONTWAIT sys/socket.h)
 check_decl(MSG_MORE sys/socket.h)
 check_decl(MSG_NOSIGNAL sys/socket.h)
-check_decl(rcvtimeo sys/socket.h)
-check_decl(sndtimeo sys/socket.h)
+check_decl(SO_RCVTIMEO sys/socket.h)
+check_decl(SO_SNDTIMEO sys/socket.h)
 check_decl(setenv stdlib.h)
 check_decl(strerror string.h)
 check_decl(strerror_r string.h)