### Navigation

- index
- next |
- previous |
- CMake »
- 3.2.1 Documentation »
- cmake-variables(7) »

# CMAKE_SYSTEM_NAME

Name of the OS CMake is building for.

This is the name of the OS on which CMake is targeting. This variable is the same as `CMAKE_HOST_SYSTEM_NAME` if you build for the host system instead of the target system when cross compiling.

### Navigation

- index
- next |
- previous |
- CMake »
- 3.2.1 Documentation »
- cmake-variables(7) »