From: R. Voggenauer Date: Sun, 15 Aug 2021 18:32:27 +0000 (+0200) Subject: build: Link ws2_32 to third_party instead of ccache_framework (#913) X-Git-Tag: v4.4~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab23abd2ecb061ee7c10efc1a5d7c7d08c6d0fff;p=thirdparty%2Fccache.git build: Link ws2_32 to third_party instead of ccache_framework (#913) --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 867aebada..e480cf8c5 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -50,7 +50,7 @@ target_compile_definitions( ) if(WIN32) - target_link_libraries(ccache_framework PRIVATE ws2_32 "psapi") + target_link_libraries(ccache_framework PRIVATE "psapi") if(CMAKE_CXX_COMPILER_ID MATCHES "GNU") if(STATIC_LINK) diff --git a/src/third_party/CMakeLists.txt b/src/third_party/CMakeLists.txt index 63015531b..fe43d594b 100644 --- a/src/third_party/CMakeLists.txt +++ b/src/third_party/CMakeLists.txt @@ -46,6 +46,10 @@ target_include_directories( target_link_libraries(third_party PRIVATE standard_settings) target_link_libraries(third_party INTERFACE blake3) +if(WIN32) + target_link_libraries(third_party PRIVATE ws2_32) +endif() + # Silence warning from winbase.h due to /Zc:preprocessor. if(MSVC) target_compile_options(third_party PRIVATE /wd5105)