[CXX-1707] Export targets for CMake project Created: 27/Dec/18 Updated: 28/Oct/23 Resolved: 23/Sep/19 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | Build |
| Affects Version/s: | None |
| Fix Version/s: | 3.5.0 |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Amit Ambasta | Assignee: | Roberto Sanchez |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| 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. |
| Comments |
| Comment by Githook User [ 27/Dec/19 ] |
|
Author: {'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}Message:
|
| Comment by Githook User [ 23/Sep/19 ] |
|
Author: {'username': 'rcsanchez97', 'email': 'roberto@connexer.com', 'name': 'Roberto C. Sánchez'}Message: |
| Comment by Ian Whalen (Inactive) [ 24/Jun/19 ] |
|
same as C work for targets - "scheduled" to put below libmongocrypt. |
| Comment by Roberto Sanchez [ 02/Apr/19 ] |
|
Here is a summary of what remains for this task:
|
| Comment by Kevin Albertson [ 25/Feb/19 ] |
|
Hi amit.ambasta@delhivery.com, Apologies for the delay. We haven't forgotten about this and we'll come back to this after some higher priority work on the C driver. |