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

Use CMake's configure_package_config_file()

    • Type: Icon: Improvement Improvement
    • Resolution: Works as Designed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.10.0
    • Affects Version/s: None
    • Component/s: Build
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Research CMake's configure_package_config_file() function and use it to generate these CMake config files:

      • libbson-static-1.0-config.cmake
      • libbson-static-1.0-config-version.cmake
      • libbson-1.0-config.cmake
      • libbson-1.0-config-version.cmake
      • libmongoc-static-1.0-config.cmake
      • libmongoc-static-1.0-config-version.cmake
      • libmongoc-1.0-config.cmake
      • libmongoc-1.0-config-version.cmake

      These files are used by other projects that want to link to libbson and libmongoc. These are a lot like the .pc files used by pkg-config to configure include paths, library dependencies, etc., for projects that want to use libbson and libmongoc.

      CMake makes it easy to generate these files but we couldn't use CMake's full automation so long as we also had to generate these files using the Autotools.

            Assignee:
            roberto.sanchez@mongodb.com Roberto Sanchez
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: