cmake: missing file
authorMichael Wallner <mike@php.net>
Sat, 17 Oct 2020 06:31:59 +0000 (08:31 +0200)
committerMichael Wallner <mike@php.net>
Sat, 17 Oct 2020 06:31:59 +0000 (08:31 +0200)
CMake/FindMemcached.cmake [new file with mode: 0644]

diff --git a/CMake/FindMemcached.cmake b/CMake/FindMemcached.cmake
new file mode 100644 (file)
index 0000000..d153d20
--- /dev/null
@@ -0,0 +1,10 @@
+find_program(MEMCACHED_EXECUTABLE NAMES memcached
+        HINTS $ENV{MEMCACHED_DIR}
+        PATH_SUFFIXES bin
+        DOC "memcached(), Memcached daemon"
+        )
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(Memcached DEFAULT_MSG MEMCACHED_EXECUTABLE)
+
+mark_as_advanced(MEMCACHED_EXECUTABLE)