diff --git a/CMakeLists.txt b/CMakeLists.txt index 43ed9115..28094747 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -192,7 +192,7 @@ if (WIN32) add_definitions(-D_HAS_ITERATOR_DEBUGGING=0) target_compile_definitions(${PROJECT_NAME} INTERFACE _HAS_ITERATOR_DEBUGGING=0) - target_link_libraries(${PROJECT_NAME} INTERFACE delayimp) + target_link_libraries(${PROJECT_NAME} INTERFACE delayimp ws2_32) if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_FRONTEND_VARIANT STREQUAL "GNU") # target x86 on windows with clang