projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
msvc support
[m6w6/libmemcached]
/
src
/
libmemcachedprotocol
/
CMakeLists.txt
diff --git
a/src/libmemcachedprotocol/CMakeLists.txt
b/src/libmemcachedprotocol/CMakeLists.txt
index dd66d6a89758e358617815c5f4653c15e8757f5d..61fbed1560b0e6de26aba1ad222962c629e99ff4 100644
(file)
--- a/
src/libmemcachedprotocol/CMakeLists.txt
+++ b/
src/libmemcachedprotocol/CMakeLists.txt
@@
-7,6
+7,7
@@
add_library(libmemcachedprotocol SHARED
common.h
handler.c
pedantic.c
common.h
handler.c
pedantic.c
+ ../libmemcached/byteorder.cc
)
add_library(memcachedprotocol ALIAS libmemcachedprotocol)
set_target_properties(libmemcachedprotocol PROPERTIES
)
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)
)
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
target_include_directories(libmemcachedprotocol PRIVATE
${CMAKE_SOURCE_DIR}/src
${CMAKE_BINARY_DIR}/src