Clion和CMake消息 [英] Clion and CMake messages

查看:126
本文介绍了Clion和CMake消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始使用Clion IDE。也许这是写在某个地方,但我没有在Google搜索中看到它。如果我在CMake脚本中放置 message()调用,那么在Clion的哪里可以看到输出?这些消息调用是我知道如何调试CMake脚本的唯一方法。

I just started using the Clion IDE. Maybe this is written somewhere but I haven't seen it in a Google search. If I put a message() call in my CMake script, where in Clion can I see the output? These message calls are the only way that I know how to debug my CMake scripts.

推荐答案

使用消息(警告...),而不是 message(...)。警告会传到stderr。

Use message(WARNING ...) instead of message(...). Warnings go to stderr.

这篇关于Clion和CMake消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆