[CDRIVER-3047] Export targets for CMake project Created: 28/Mar/19 Updated: 28/Oct/23 Resolved: 09/Sep/19 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | cmake |
| Affects Version/s: | None |
| Fix Version/s: | 1.16.0 |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Roberto Sanchez | Assignee: | Roberto Sanchez |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||
| Description |
|
This issue was cloned from 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. |
| Comments |
| Comment by Githook User [ 27/Dec/19 ] |
|
Author: {'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}Message:
|
| Comment by Githook User [ 09/Sep/19 ] |
|
Author: {'username': 'rcsanchez97', 'email': 'roberto@connexer.com', 'name': 'Roberto C. Sánchez'}Message: |
| Comment by Ian Whalen (Inactive) [ 24/Jun/19 ] |
|
putting this back into scheduled just to rank it below the libmongocrypt work (which is higher prio). |
| Comment by Roberto Sanchez [ 02/Apr/19 ] |
|
Here is a summary of what remains for this task:
|