... | ... | @@ -41,11 +41,17 @@ platform is through the CMAKE_SYSTEM variables. |
|
|
|
|
|
<!-- end list -->
|
|
|
|
|
|
- CMAKE_SYSTEM_NAME : The name of the system targeted by the build.
|
|
|
The three common values are **Windows**, **Darwin**, and **Linux**,
|
|
|
though several others exist, such as **Android**, **FreeBSD**, and
|
|
|
**CrayLinuxEnvironment**. Platforms without an operating system,
|
|
|
such as embedded devices, are given **Generic** as a system name.
|
|
|
- CMAKE_SYSTEM_NAME : The name of the system targeted by the build. Unfortunately, these values depend on CMake's internal platform files, and are not documented anywhere. An incomplete list is below:
|
|
|
|
|
|
|Value|Environments Seen|
|
|
|
|---|---|
|
|
|
|`Windows`|Windows (Visual Studio, MinGW GCC)|
|
|
|
|`Darwin`|macOS/OS X (Clang, GCC)|
|
|
|
|`Linux`|Linux (GCC, Intel, PGI)|
|
|
|
|`Android`|Android NDK (GCC, Clang)|
|
|
|
|`FreeBSD`|FreeBSD|
|
|
|
|`CrayLinuxEnvironment`|Cray supercomputers (Cray compiler)|
|
|
|
|`MSYS`|Windows (MSYS2 shell native GCC)|
|
|
|
|
|
|
<!-- end list -->
|
|
|
|
... | ... | @@ -61,6 +67,3 @@ platform is through the CMAKE_SYSTEM variables. |
|
|
|
|
|
- CMAKE_HOST_SYSTEM_NAME : The name of the system hosting the
|
|
|
build. Has the same possible values as **CMAKE_SYSTEM_NAME**. |
|
|
|
|
|
----
|
|
|
This page was initially populated by conversion from its [original location](https://public.kitware.com/Wiki/CMake_Checking_Platform) in another wiki. |