Help: Improve CMAKE_SYSTEM_{NAME,VERSION} variable documentation
Specify their meaning for host builds and when cross compiling. Sepcify their relationship in each case.
This commit is contained in:
parent
5c50b39686
commit
7068860941
|
@ -1,8 +1,20 @@
|
||||||
CMAKE_SYSTEM_NAME
|
CMAKE_SYSTEM_NAME
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
Name of the operating system CMake is building for.
|
The name of the operating system for which CMake is to build.
|
||||||
|
See the :variable:`CMAKE_SYSTEM_VERSION` variable for the OS version.
|
||||||
|
|
||||||
This is the name of the operating system on which CMake is targeting. This
|
System Name for Host Builds
|
||||||
variable is the same as :variable:`CMAKE_HOST_SYSTEM_NAME` if you build for the
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
host system instead of the target system when cross compiling.
|
|
||||||
|
``CMAKE_SYSTEM_NAME`` is by default set to the same value as the
|
||||||
|
:variable:`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 :ref:`cross compiling <Cross Compiling Toolchain>`.
|
||||||
|
In this case the :variable:`CMAKE_SYSTEM_VERSION` variable must also be
|
||||||
|
set explicitly.
|
||||||
|
|
|
@ -1,8 +1,21 @@
|
||||||
CMAKE_SYSTEM_VERSION
|
CMAKE_SYSTEM_VERSION
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
The operating system version CMake is building for.
|
The version of the operating system for which CMake is to build.
|
||||||
|
See the :variable:`CMAKE_SYSTEM_NAME` variable for the OS name.
|
||||||
|
|
||||||
This variable is the same as :variable:`CMAKE_HOST_SYSTEM_VERSION` if
|
System Version for Host Builds
|
||||||
you build for the host system instead of the target system when
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
cross compiling.
|
|
||||||
|
When the :variable:`CMAKE_SYSTEM_NAME` variable takes its default value
|
||||||
|
then ``CMAKE_SYSTEM_VERSION`` is by default set to the same value as the
|
||||||
|
:variable:`CMAKE_HOST_SYSTEM_VERSION` variable so that the build targets
|
||||||
|
the host system version.
|
||||||
|
|
||||||
|
System Version for Cross Compiling
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
When the :variable:`CMAKE_SYSTEM_NAME` variable is set explicitly to
|
||||||
|
enable :ref:`cross compiling <Cross Compiling Toolchain>` then the
|
||||||
|
value of ``CMAKE_SYSTEM_VERSION`` must also be set explicitly to specify
|
||||||
|
the target system version.
|
||||||
|
|
Loading…
Reference in New Issue