]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
build: Link ws2_32 to third_party instead of ccache_framework (#913)
authorR. Voggenauer <rvogg@users.noreply.github.com>
Sun, 15 Aug 2021 18:32:27 +0000 (20:32 +0200)
committerGitHub <noreply@github.com>
Sun, 15 Aug 2021 18:32:27 +0000 (20:32 +0200)
src/CMakeLists.txt
src/third_party/CMakeLists.txt

index 867aebadaf5a8e369fec32c764ecc22704b86c70..e480cf8c57cc8a57f03fddcd715d66f4b61ff5d7 100644 (file)
@@ -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)
index 63015531b357bef57291453141e6c60d5ccd973a..fe43d594b987b6f93002258dfc4800f2f6357594 100644 (file)
@@ -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)