From 4c6eb4de83d6f61c90adeab31b081e137168ab52 Mon Sep 17 00:00:00 2001 From: Cristian Ferretti <37232625+jcferretti@users.noreply.github.com> Date: Mon, 29 Jul 2024 02:06:57 -0400 Subject: [PATCH] fix(cpp-client): Add mising target link lib winsock2 for windows (#5857) --- cpp-client/deephaven/dhcore/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/cpp-client/deephaven/dhcore/CMakeLists.txt b/cpp-client/deephaven/dhcore/CMakeLists.txt index 6186051d5f0..219316d3eb0 100644 --- a/cpp-client/deephaven/dhcore/CMakeLists.txt +++ b/cpp-client/deephaven/dhcore/CMakeLists.txt @@ -134,6 +134,7 @@ foreach (whichlib dhcore dhcore_static) target_compile_options(${whichlib} PRIVATE /W3 /bigobj) target_compile_definitions(${whichlib} PRIVATE _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING) + target_link_libraries(${whichlib} PRIVATE ws2_32) endif() target_include_directories(${whichlib} PRIVATE include/private)