Is there a variable I can use in cmake to make it act like it was passed the -q option? It would be nice because I have a very modular build that gets messy with cmakes output. I am using it in a c++ project.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s no variable that I know of. However, you can add the following hack to the start of your top-level CMakeLists.txt (before the
projectcall) to control the output somewhat:This overrides CMake’s built-in
messagecommand and suppresses allSTATUSand untyped messages, leaving the more important types to output correctly.The output of e.g. a
WARNINGmessage will change fromto
Note that the actual line where the warning message was generated is listed in the call stack rather than being the first line of the output message.
Finally, this has no effect on the summary output which indicates success or failure of the configure attempt.