[CXX-760] CMake Configuration needs alternate mechanism to find C driver instead of pkg-config Created: 03/Dec/15  Updated: 11/Jan/16  Resolved: 04/Jan/16

Status: Closed
Project: C++ Driver
Component/s: Build
Affects Version/s: None
Fix Version/s: 3.0.0-rc0

Type: New Feature Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Andrew Morrow (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows


Issue Links:
Depends
is depended on by CXX-638 C++ Driver on master fails to compile... Closed
Epic Link: C++11 Driver MongoDB 3.2

 Description   

pkg-config is not supported on Windows so an alternative mechanism is needed to support configuring how to find the libbson and libmongoc.

See https://github.com/mongodb/mongo-c-driver/ for an example of how the C driver manages this.



 Comments   
Comment by Githook User [ 04/Jan/16 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@mongodb.com'}

Message: CXX-760 CMake and package search improvements
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/75a82040dfe44c31f421242e38424da2287d89d8

Comment by Andrew Morrow (Inactive) [ 01/Jan/16 ]

https://github.com/mongodb/mongo-cxx-driver/pull/412

Comment by Mark Benvenuto [ 04/Dec/15 ]

KDE which is a heavy use of CMake simply wraps their find logic into FindXXX.cmake files, and in then protects the use of PkgConfig with if (NOT WIN32).

Examples:
http://lxr.kde.org/source/kde/workspace/kfilemetadata/cmake/FindFFmpeg.cmake
http://lxr.kde.org/source/kde/kdeedu/kstars/cmake/modules/FindQJSON.cmake
http://lxr.kde.org/source/frameworks/kjs/cmake/FindPCRE.cmake

Generated at Wed Feb 07 22:00:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.