[SERVER-8609] Enable detection of C++ driver version via header inspection without compiling. Created: 19/Feb/13 Updated: 01/Apr/13 Resolved: 20/Feb/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Internal Client |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Andrew Morrow (Inactive) | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | triage | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Participants: | |||||||||||||
| Description |
|
Currently there is no way to determine by inspection of the version.h header what version of the C++ driver is being used if only the headers and library are available. The only way to do so it is to compile a test file and link it against the library. It would be good to have a version identifier in the header that can be extracted without needing to compile the header or link against the client library (like with grep). This would make it trivial to write a FindMongoClient analogue of FindBoost in CMake, for instance. |
| Comments |
| Comment by Eliot Horowitz (Inactive) [ 20/Feb/13 ] |