Skip to content

Commit 206fcfb

Browse files
committed
CDRIVER-2083 Fix windows build
1 parent d4ba500 commit 206fcfb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,11 @@ find_package (Threads REQUIRED)
542542
if(CMAKE_USE_PTHREADS_INIT)
543543
set(THREAD_LIB ${CMAKE_THREAD_LIBS_INIT})
544544
endif()
545+
545546
set (LIBS ${SASL_LIBS} ${SSL_LIBS} ${SHM_LIB} Threads::Threads)
547+
if(WIN32)
548+
set (LIBS ${LIBS} ws2_32)
549+
endif()
546550

547551
target_link_libraries (mongoc_shared ${LIBS} ${BSON_LIBRARIES})
548552
target_include_directories (mongoc_shared PUBLIC ${BSON_INCLUDE_DIRS})

0 commit comments

Comments
 (0)