X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=test%2FCMakeLists.txt;h=9ea8cd2ca363a6e404553cbd322be66b18420849;hb=97f2eefa5bba64cece4496846e04abb5bbd663eb;hp=7a6faee9682a749b1aa9eb1809d4d2c7fbe1b3e7;hpb=6a0eee5f5b6163f06fa660dde37e8fe5e580483e;p=awesomized%2Flibmemcached diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 7a6faee9..9ea8cd2c 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -4,12 +4,14 @@ endif() include(CMake/Catch.cmake) -check_header(semaphore.h) - 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)