Cmake fails if libbson_dir provided but not pkg-config found

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Incomplete
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.0.0
    • Component/s: Build
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

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

            Assignee:
            Andrew Morrow (Inactive)
            Reporter:
            Mario Valle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: