CACHE STRING "sanitizers to enable (e.g. address undefined ...)")
if(BUILD_TESTING)
- set(MEMCACHED_BINARY "/usr/bin/memcached"
- CACHE FILEPATH "memcached binary")
+ find_program(MEMCACHED_BINARY memcached DOC "memcached binary")
set(CMAKE_CTEST_ARGUMENTS "--output-on-failure")
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.17)
# available since CMake 3.17
{ NULL, NULL}
};
-const int ascii_tests = 1;
-const int binary_tests = 2;
-
struct test_type_st
{
bool ascii;
version.cc
virtual_bucket.c)
+check_cxx_compiler_flag(-Wno-deprecated-register W_NO_DEPRECATED_REGISTER)
+
+if(W_NO_DEPRECATED_REGISTER)
+ set_source_files_properties(
+ ${FLEX_CSL_SCANNER_OUTPUTS}
+ ${BISON_CSL_PARSER_OUTPUTS}
+ PROPERTIES COMPILE_OPTIONS -Wno-deprecated-register
+ )
+endif()
+
add_library(libmemcached SHARED
${LIBMEMCACHED_SOURCES})
add_library(memcached ALIAS libmemcached)
/* Byte swap a 64-bit number. */
#ifndef swap64
+# ifndef HAVE_HTONLL
static inline uint64_t swap64(uint64_t in)
{
#if !WORDS_BIGENDIAN
return in;
#endif // WORDS_BIGENDIAN
}
+# endif
#endif
#ifdef HAVE_SYS_TYPES_H
{}
ReturnMatcher(const ReturnMatcher &) = default;
- ReturnMatcher &operator = (const ReturnMatcher &) = default;
ReturnMatcher(ReturnMatcher &&rm);
ReturnMatcher &operator = (ReturnMatcher &&rm);