CMAKE_GENERATOR_PLATFORM.rst 672 B

123456789101112131415
  1. CMAKE_GENERATOR_PLATFORM
  2. ------------------------
  3. Generator-specific target platform name specified by user.
  4. Some CMake generators support a target platform name to be given
  5. to the native build system to choose a compiler toolchain.
  6. If the user specifies a toolset name (e.g. via the cmake -A option)
  7. the value will be available in this variable.
  8. The value of this variable should never be modified by project code.
  9. A toolchain file specified by the :variable:`CMAKE_TOOLCHAIN_FILE`
  10. variable may initialize ``CMAKE_GENERATOR_PLATFORM``. Once a given
  11. build tree has been initialized with a particular value for this
  12. variable, changing the value has undefined behavior.