[CDRIVER-3756] CMakeLists.txt redefines "message" function Created: 16/Jul/20 Updated: 28/Oct/23 Resolved: 24/Jul/20 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.18.0, 1.17.3, 1.18.0-alpha |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Tom Wilson | Assignee: | Roberto Sanchez |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
All |
||
| Issue Links: |
|
||||||||
| Description |
|
At the beginning of the top level CMakeLists.txt, the "message" function is redefined This causes significant problems if the mongo C driver is included as a sub-project within a larger CMake built code base. After adding mongo C to my project I was unable to get any messages from CMake after the mongo scripts had been parsed. Commenting out the following, solved the issue: #function (message)
CMake already has log levels, could these not be used? I have included a link to the documentation below https://cmake.org/cmake/help/latest/command/message.html
Thanks
|
| Comments |
| Comment by Githook User [ 24/Nov/20 ] |
|
Author: {'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}Message: |
| Comment by Githook User [ 24/Nov/20 ] |
|
Author: {'name': 'Roberto C. Sánchez', 'email': 'roberto@connexer.com', 'username': 'rcsanchez97'}Message: |
| Comment by Githook User [ 06/Aug/20 ] |
|
Author: {'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}Message: |
| Comment by Githook User [ 24/Jul/20 ] |
|
Author: {'name': 'Roberto C. Sánchez', 'email': 'roberto@connexer.com', 'username': 'rcsanchez97'}Message: |