[CDRIVER-1993] cmake doesn't check libbson minimum version Created: 17/Jan/17  Updated: 03/May/17  Resolved: 24/Feb/17

Status: Closed
Project: C Driver
Component/s: Build, libmongoc
Affects Version/s: None
Fix Version/s: 1.7.0

Type: Improvement Priority: Major - P3
Reporter: Hannes Magnusson Assignee: A. Jesse Jiryu Davis
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on CDRIVER-1058 Install CMake 'config' style files fo... Closed

 Description   

Compiling mongoc using the CMake manifest will happily compile against whatever libbson is installed without verifying its minimum required version.



 Comments   
Comment by Githook User [ 24/Feb/17 ]

Author:

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

Message: CDRIVER-1058 cmake package config

Also fix CDRIVER-1993: cmake now checks libbson version.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/8c900de6ed1b87b22c7f7c104fa362fca727eb8a

Comment by Hannes Magnusson [ 17/Jan/17 ]

cmake is currently the only way we test compiling against system installed libbson.

mongo-cxx-driver discovered an issue where we had bumped mongoc-master to 1.6.0-dev, hence requiring libbson 1.6.0-dev, but libbson-master was still reporting 1.5.0-dev.

We appear not to check the bundled libbson version thoroughly, hence our autotools builds not failing, while our cmake manifest seems to be skipping the version check completely

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