Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1011

PR: Support finding libbson and mongo_c on Windows when pkg-config is present

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.2
    • Affects Version/s: None
    • Component/s: Portability
    • None

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

      This PR enables a workaround for an upstream bug: libbson and mongo_c's builds don't create .pc files on Windows. As a result, pkg-config can't find them even if they exist and it is told where to look.

      The workaround is as follows: The existing cmake files always trust pkg-config if it is found – if a user specifies a correct path to libbson, but pkg-config can't find libbson, then the cmake file reports that libbson can't be found. This fix prioritizes the user-specified path so that it is always used if specified, even if pkg-config runs and can't find the package.

            Assignee:
            backlog-cxx-driver [DO NOT USE] Backlog - CXX Driver Team
            Reporter:
            david.golden@mongodb.com David Golden
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: