testing: ++
[awesomized/libmemcached] / test / CMakeLists.txt
index 9ea8cd2ca363a6e404553cbd322be66b18420849..118dbc445be2570e27c5d5127e5e0b28fab0c98c 100644 (file)
@@ -4,6 +4,12 @@ endif()
 
 include(CMake/Catch.cmake)
 
+if(NOT MEMCACHED_BINARY)
+    message(SEND_ERROR "Could not find memcached(1) binary")
+    set(ENV{INVALID_CONFIGURATION} 1)
+endif()
+
+
 check_decl(pipe2 unistd.h)
 check_decl(SOCK_NONBLOCK sys/socket.h)
 check_decl(SOCK_CLOEXEC sys/socket.h)