X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Flibmemcachedprotocol%2FCMakeLists.txt;h=61fbed1560b0e6de26aba1ad222962c629e99ff4;hb=aeac01630eed825d8a624e7fd7c107d47bb2e40c;hp=dd66d6a89758e358617815c5f4653c15e8757f5d;hpb=dfdcce95b625e98144c1681f05b337648b92f20f;p=awesomized%2Flibmemcached diff --git a/src/libmemcachedprotocol/CMakeLists.txt b/src/libmemcachedprotocol/CMakeLists.txt index dd66d6a8..61fbed15 100644 --- a/src/libmemcachedprotocol/CMakeLists.txt +++ b/src/libmemcachedprotocol/CMakeLists.txt @@ -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 @@ -21,6 +22,9 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL AppleClang) ) endif() 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