Skip to content

Commit 5f80b93

Browse files
committed
Add missing Winsock2 library to windows build
1 parent b77e17d commit 5f80b93

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ target_link_libraries(async_postgres PRIVATE
1212
PostgreSQL::PostgreSQL
1313
)
1414

15+
if(WIN32)
16+
target_link_libraries(async_postgres PRIVATE ws2_32)
17+
endif()
18+
1519
target_include_directories(async_postgres PRIVATE
1620
${CMAKE_CURRENT_LIST_DIR}
1721
${CMAKE_BINARY_DIR}/include

0 commit comments

Comments
 (0)