summaryrefslogtreecommitdiff
path: root/share/cmake-3.22/Help/envvar/OBJC.rst
blob: 2d95806cbf956dcec3edf0e1f2101d261aab2001 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
OBJC
----

.. versionadded:: 3.16.7

.. include:: ENV_VAR.txt

Preferred executable for compiling ``OBJC`` language files. Will only be used
by CMake on the first configuration to determine ``OBJC`` compiler, after
which the value for ``OBJC`` is stored in the cache as
:variable:`CMAKE_OBJC_COMPILER <CMAKE_<LANG>_COMPILER>`. For any configuration
run (including the first), the environment variable will be ignored if the
:variable:`CMAKE_OBJC_COMPILER <CMAKE_<LANG>_COMPILER>` variable is defined.

If ``OBJC`` is not defined, the :envvar:`CC` environment variable will
be checked instead.