The name of the operating system for which CMake is to build. See the CMAKE_SYSTEM_VERSION variable for the OS version.
Note that CMAKE_SYSTEM_NAME is not set to anything by default when running in script mode, since it's not building anything.
System Name for Host Builds
CMAKE_SYSTEM_NAME is by default set to the same value as the CMAKE_HOST_SYSTEM_NAME variable so that the build targets the host system.
System Name for Cross Compiling
CMAKE_SYSTEM_NAME may be set explicitly when first configuring a new build tree in order to enable

CMAKE_SYSTEM_NAME变量用于确定CMake构建的目标操作系统类型。在主机构建中,默认设置与CMAKE_HOST_SYSTEM_NAME相同。对于交叉编译,可以显式设置CMAKE_SYSTEM_NAME和CMAKE_SYSTEM_VERSION来启用该功能。
最低0.47元/天 解锁文章
1638

被折叠的 条评论
为什么被折叠?



