[CXX-1328] Make examples run from installed CMake config files Created: 28/Apr/17 Updated: 08/Feb/23 |
|
| Status: | Backlog |
| Project: | C++ Driver |
| Component/s: | Testing |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | David Golden | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Epic Link: | CXX Driver Testing (Evergreen) |
| Description |
|
Right now, mongocxx and bsoncxx examples use CMake targets to configure their build. Instead, they should use the results of find_package(libmongocxx) or find_package(libmongocxx-static) just like a standalone program would. We should set the path for find_package to load from the install directory where we just installed .cmake files. |