X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fbin%2Fcommon%2FCMakeLists.txt;h=84443e26ca1317c5e6b7a4ebae652cff26b407e1;hb=aeac01630eed825d8a624e7fd7c107d47bb2e40c;hp=c5b4faa57fb6de4937634a591ddf3be843dfa254;hpb=77fc9c3ba95eb502d1a66146251acfcfd5606df8;p=awesomized%2Flibmemcached diff --git a/src/bin/common/CMakeLists.txt b/src/bin/common/CMakeLists.txt index c5b4faa5..84443e26 100644 --- a/src/bin/common/CMakeLists.txt +++ b/src/bin/common/CMakeLists.txt @@ -1,4 +1,7 @@ add_library(libclient_common STATIC options.cpp checks.hpp random.hpp time.hpp) +if(NOT HAVE_GETOPT_H) + target_sources(libclient_common PRIVATE ../../win32/getopt.c) +endif() add_library(client_common ALIAS libclient_common) set_target_properties(libclient_common PROPERTIES CXX_STANDARD ${CXX_STANDARD}) target_link_libraries(libclient_common PUBLIC libmemcached)