05-cmake语法-message()

输出错误

message(FATAL_ERROR "
FATAL: In-source builds are not allowed.
       You should create a separate directory for build files.
")  

FATAL_ERROR 是错误关键字。

输出警告

message(WARNING "OpenCV requires Android SDK tools revision 14 or newer. Otherwise tests and samples will no be compiled.")

WARNING 是警告关键字。

  

输出正常

message(STATUS "Can't detect runtime and/or arch")

STATUS

猜你喜欢

转载自www.cnblogs.com/alexYuin/p/8874881.html
今日推荐