-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Environment:All
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)
- list (GET ARGV 0 MessageType)
- if (MESSAGES_ENABLED)
- list (REMOVE_AT ARGV 0)
- _message (${MessageType} "${ARGV}")
- endif ()
#endfunction ()
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
- related to
-
CDRIVER-3041 CMakelists.txt logic causes message to be hidden
- Closed