CMakePrintSystemInformation¶
此模块可用于诊断,以打印系统信息。
示例¶
在项目中包含此模块
include(CMakePrintSystemInformation)
将打印各种内部 CMake 变量。例如
CMAKE_SYSTEM is Linux-6.11.0-17-generic Linux 6.11.0-17-generic x86_64
CMAKE_SYSTEM file is Platform/Linux
CMAKE_C_COMPILER is /usr/bin/cc
CMAKE_CXX_COMPILER is /usr/bin/c++
CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS is -shared
CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS is -shared
...