summaryrefslogtreecommitdiff
path: root/Help/envvar/OBJC.rst
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-05-14 07:10:09 -0400
committerBrad King <brad.king@kitware.com>2020-05-14 07:17:48 -0400
commit67b9f55d46f934de0954ae83d39169c86039ecea (patch)
treee90b8d9048d1d85679511afa18db2189c75ce1e9 /Help/envvar/OBJC.rst
parentab9be6662f3ab7bf93a5793395d0aeb3c2297e86 (diff)
downloadcmake-67b9f55d46f934de0954ae83d39169c86039ecea.tar.gz
Objective C/C++: Honor CC and CXX env vars to select compiler
If the `OBJC` or `OBJCXX` environment variable is not set to specify an Objective C or C++ compiler, check `CC` or `CXX` too. Fixes: #20703
Diffstat (limited to 'Help/envvar/OBJC.rst')
-rw-r--r--Help/envvar/OBJC.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Help/envvar/OBJC.rst b/Help/envvar/OBJC.rst
index dda809c8e6..30c0d133b9 100644
--- a/Help/envvar/OBJC.rst
+++ b/Help/envvar/OBJC.rst
@@ -9,3 +9,6 @@ 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.