https://github.com/Kitware/CMake
Raw File
Tip revision: ed154b38963437c7a0208a45592988aa577ac7c9 authored by Brad King on 06 November 2023, 16:50:13 UTC
CMake 3.28.0-rc4
Tip revision: ed154b3
CMAKE_OSX_VARIABLE.txt
The value of this variable should be set prior to the first
:command:`project` or :command:`enable_language` command invocation
because it may influence configuration of the toolchain and flags.
It is intended to be set locally by the user creating a build tree.
This variable should be set as a ``CACHE`` entry (or else CMake may
remove it while initializing a cache entry of the same name) unless
policy :policy:`CMP0126` is set to ``NEW``.

Despite the ``OSX`` part in the variable name(s) they apply also to
other SDKs than macOS like iOS, tvOS, visionOS, or watchOS.

This variable is ignored on platforms other than Apple.
back to top