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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.2
    • Component/s: Portability
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: