CMAKE_SYSTEM_VERSIONΒΆ

The OS version CMake is building for.

This variable is the same as CMAKE_HOST_SYSTEM_VERSION if you build for the host system instead of the target system when cross compiling.