"Fossies" - the Fresh Open Source Software Archive

Member "cmake-3.6.2-win32-x86/share/cmake-3.6/Help/variable/CMAKE_SYSTEM_VERSION.rst" (7 Sep 2016, 1204 Bytes) of archive /windows/misc/cmake-3.6.2-win32-x86.zip:

As a special service "Fossies" has tried to format the requested source page into HTML format (assuming markdown format). Alternatively you can here view or download the uninterpreted source code file. A member file download can also be achieved by clicking within a package contents listing on the according byte size field.


The version of the operating system for which CMake is to build. See the :variable:CMAKE_SYSTEM_NAME variable for the OS name.

System Version for Host Builds ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

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.

In the case of a host build then CMAKE_SYSTEM_VERSION may be set explicitly when first configuring a new build tree in order to enable targeting the build for a different version of the host operating system than is actually running on the host. This is allowed and not considered cross compiling so long as the binaries built for the specified OS version can still run on the host.

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.