knowledge_map/C++/cmake.md
2024-11-16 14:33:59 +08:00

13 lines
438 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## message
```cmake
# **_mode_** 的值包括 **FATAL_ERROR**、**WARNING**、**AUTHOR_WARNING**、**STATUS**、**VERBOSE**等。我主要使用其中的 2 个——**FATAL_ERROR**、**STATUS**。
# **FATAL_ERROR**:产生 CMake Error**会停止编译系统的构建过程**
# **STATUS**:最常用的命令,常用于查看变量值,类似于编程语言中的 DEBUG 级别信息。
message(STATUS "result:${RET}")
```