X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=test%2FCMakeLists.txt;h=9ea8cd2ca363a6e404553cbd322be66b18420849;hb=d2e4bd3d292dc9b84c29d6bc2f89f2e542abc56d;hp=ebb39afe84a755f11b8da79f8ca69ac91b1f7f2d;hpb=96fce03b6aeece751471d10af766e1a195701b45;p=m6w6%2Flibmemcached diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index ebb39afe..9ea8cd2c 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -8,6 +8,10 @@ check_decl(pipe2 unistd.h) check_decl(SOCK_NONBLOCK sys/socket.h) check_decl(SOCK_CLOEXEC sys/socket.h) +if(ENABLE_MEMASLAP AND LIBEVENT AND HAVE_C_STDATOMIC) + set(HAVE_MEMASLAP 1) +endif() + file(GLOB_RECURSE TESTING_SRC RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp) set(TESTING_ROOT ${CMAKE_CURRENT_BINARY_DIR}) set_source_files_properties(main.cpp PROPERTIES SKIP_UNITY_BUILD_INCLUSION ON)