[CDRIVER-2476] Use CMake's configure_package_config_file() Created: 27/Jan/18  Updated: 27/Oct/23  Resolved: 17/Apr/18

Status: Closed
Project: C Driver
Component/s: Build
Affects Version/s: None
Fix Version/s: 1.10.0

Type: Improvement Priority: Minor - P4
Reporter: A. Jesse Jiryu Davis Assignee: Roberto Sanchez
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: Remove Autotools

 Description   

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.



 Comments   
Comment by A. Jesse Jiryu Davis [ 17/Apr/18 ]

Nevermind, I see that this work was done in March 2017. Git commit 3a522396.

Comment by A. Jesse Jiryu Davis [ 27/Jan/18 ]

This is lower-priority, we can release 1.10 without finishing this work.

Generated at Wed Feb 07 21:15:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.