X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=test%2FCMakeLists.txt;h=efc3e70874ac759eb73ba2228e46a8841afc27b0;hb=94b05fd0d8c87b24e14f3782c64f79999a65d38e;hp=523db5be19219081582570fdddbbc472ce4913d0;hpb=9f88736f8219b494025465089655609f636bf1d7;p=awesomized%2Flibmemcached diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 523db5be..efc3e708 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -12,8 +12,6 @@ configure_define_string(LIBMEMCACHED_WITH_SASL_CONF) list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake") include(Catch) -add_definitions(-D_GNU_SOURCE) -set(CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE) check_symbol(pipe2 unistd.h) check_symbol(SOCK_NONBLOCK sys/socket.h) check_symbol(SOCK_CLOEXEC sys/socket.h) @@ -46,6 +44,7 @@ if(NOT MEMCACHED_BINARY) endif() add_executable(timeout timeout.c) +target_include_directories(timeout PRIVATE ${CMAKE_BINARY_DIR}) file(GLOB_RECURSE TESTING_SRC RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp) set(TESTING_ROOT "${CMAKE_CURRENT_BINARY_DIR}")