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

Cmake fails if libbson_dir provided but not pkg-config found

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Major - P3 Major - P3
    • None
    • 3.0.0
    • Build
    • None

    Description

      If you enter LIBBSON_DIR and there is no pkg-config around, makefile fails with a FindPkgConfig.cmake error even if I entered a LIBBSON_DIR value.
      The solution is to switch (in both *.cmake provided under ./cmake) the if section: if (PKG_CONFIG_FOUND) with the 2nd one elseif(LIBBSON_DIR).
      Attached the two files modified.

      Attachments

        1. CMakeOutput.log
          44 kB
        2. FindLibBSON.cmake
          2 kB
        3. FindLibMongoC.cmake
          2 kB

        Activity

          People

            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            mvalle@cscs.ch Mario Valle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: