Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-3047

Export targets for CMake project

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.16.0
    • Affects Version/s: None
    • Component/s: cmake
    • None

      This issue was cloned from CXX-1707. Essentially, the improvement requested there for the C++ driver needs to be mirrored for the C driver. Original report text follows:

      Currently mongocxx build directory exposes LIBMONGOCXX_INCLUDE_DIRS and LIBMONGOCXX_LIBRARIES in its config.cmake which projects depending on libmongocxx can use.

      It would instead be preferable to additionally export targets so that other projects can use libmongocxx (and by extension libbson and libmongoc) as subprojects in their own projects. It is additionally, the recommended way for projects to link to third party projects and avoids having to specify both INCLUDE and LINK dir separately.

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

              Created:
              Updated:
              Resolved: