C++学习(四零九)CMAKE_SYSTEM_NAME确定操作系统类型
Posted hankern
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了C++学习(四零九)CMAKE_SYSTEM_NAME确定操作系统类型相关的知识,希望对你有一定的参考价值。
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 cross compiling. In this case the CMAKE_SYSTEM_VERSION variable must also be set explicitly.
以上是关于C++学习(四零九)CMAKE_SYSTEM_NAME确定操作系统类型的主要内容,如果未能解决你的问题,请参考以下文章
C++学习(四四零)android studio如何关联cmake