Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2505 Make libmongoc a sub-project in mongo-c-driver
  3. CDRIVER-2649

Cannot make install just libbson without building libmongoc

    • Type: Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      If we build just libbson

      cd mongo-c-driver
      mkdir cmake-build && cd cmake-build
      cmake -DCMAKE_INSTALL_PREFIX=/tmp/cdriver ../
      make bson_shared
      

      This builds bson_shared only, as expected. However, doing make install proceeds to build all of the C driver.

      A potential solution is to introduce a CMake option to disable building libmongoc.

            Assignee:
            roberto.sanchez@mongodb.com Roberto Sanchez
            Reporter:
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: