X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Flibmemcachedprotocol%2FCMakeLists.txt;h=43d59de1310ca064b509a03c0b4b0dfa318ab020;hb=b9748819d603f9d5c1dc54730ef38b6ee6d63ca4;hp=c0c3cffad01cfba1b822280ab902edd0faaa6a16;hpb=6b7d2bf0319e0bd48bd6aa4ad8c56a935f98b0d2;p=awesomized%2Flibmemcached diff --git a/src/libmemcachedprotocol/CMakeLists.txt b/src/libmemcachedprotocol/CMakeLists.txt index c0c3cffa..43d59de1 100644 --- a/src/libmemcachedprotocol/CMakeLists.txt +++ b/src/libmemcachedprotocol/CMakeLists.txt @@ -1,4 +1,4 @@ -check_header(umem.h) +check_include(umem.h) add_library(libmemcachedprotocol SHARED ascii_handler.c @@ -7,6 +7,7 @@ add_library(libmemcachedprotocol SHARED common.h handler.c pedantic.c + ../libmemcached/byteorder.cc ) add_library(memcachedprotocol ALIAS libmemcachedprotocol) set_target_properties(libmemcachedprotocol PROPERTIES @@ -20,7 +21,11 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL AppleClang) LINK_FLAGS "-Wl,-undefined,dynamic_lookup" ) endif() +target_link_libraries(libmemcachedprotocol PRIVATE p9y) target_link_libraries(libmemcachedprotocol PUBLIC Threads::Threads) +if(MSVC) + target_link_libraries(libmemcachedprotocol PUBLIC wsock32 ws2_32) +endif() target_include_directories(libmemcachedprotocol PRIVATE ${CMAKE_SOURCE_DIR}/src ${CMAKE_BINARY_DIR}/src