[CDRIVER-2532] libbson should link ws2_32 if win32 instead of if not unix Created: 06/Mar/18  Updated: 28/Oct/23  Resolved: 30/Apr/18

Status: Closed
Project: C Driver
Component/s: Build
Affects Version/s: None
Fix Version/s: 1.10.0

Type: Bug Priority: Trivial - P5
Reporter: Gabriel Russell (Inactive) Assignee: A. Jesse Jiryu Davis
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

in the CMakeLists.txt file for libbson, ws2_32 is linked it the build is NOT UNIX, but it probably should be it is WIN32, as it is in the cdriver proper.

https://github.com/mongodb/mongo-c-driver/blob/master/src/libbson/CMakeLists.txt#L235

https://github.com/mongodb/mongo-c-driver/blob/master/CMakeLists.txt#L671



 Comments   
Comment by Githook User [ 30/Apr/18 ]

Author:

{'email': 'jesse@mongodb.com', 'username': 'ajdavis', 'name': 'A. Jesse Jiryu Davis'}

Message: CDRIVER-2601 rename LIBS cmake vars to LIBRARIES

Also CDRIVER-2532, libbson should link to ws2_32 if WIN32 is true,
rather linking to it if UNIX is false.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/976085a22be8a630559f7d8a0ae4afb49927c2ed

Generated at Wed Feb 07 21:15:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.