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

Export targets for CMake project

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • 3.5.0
    • Build
    • None

    Description

      Hi,

       

      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.

      Attachments

        Issue Links

          Activity

            People

              roberto.sanchez@mongodb.com Roberto Sanchez
              amit.ambasta@delhivery.com Amit Ambasta
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: