[CDRIVER-3041] CMakelists.txt logic causes message to be hidden Created: 26/Mar/19 Updated: 27/Oct/23 Resolved: 05/Aug/20 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | Build, cmake |
| Affects Version/s: | 1.14.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | John Rocha | Assignee: | Unassigned |
| Resolution: | Gone away | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
The file mongo-c-driver-r1.14/CMakeLists.txt has logic near the top to suppress mongo test output, that does not appear to work correctly. The intent appears to be to turn cmake output messages on/off dynamically. However, I've found that once it's turned off, it's just always off.
This issue can be observed with a simple CMake test file such as the following:
The end result should be output showing "This is before add_subdirectory", all of the stock mongo-c-driver-r1.14 cmake output (with test output suppressed) followed by the string "This is after add_subdirectory" However, that doesn't happen. All calls to Message() are suppressed after mongo's overloaded message() function comes into play. Refer to attachment output.txt CMake version 3.11.0-rc1 is in use. A possible fix is for mongodb to change
to
Recomm |
| Comments |
| Comment by Kevin Albertson [ 05/Aug/20 ] |
|
Hi jrrocha. I believe this is resolved with |
| Comment by Kevin Albertson [ 01/Apr/19 ] |
|
Thanks for the detailed report jrrocha. If you'd like to submit a pull request we'd be happy to take a look. Otherwise, we'll look into this when we can. |