summaryrefslogtreecommitdiff
path: root/Help/envvar/OBJCXX.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/OBJCXX.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/OBJCXX.rst')
-rw-r--r--Help/envvar/OBJCXX.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Help/envvar/OBJCXX.rst b/Help/envvar/OBJCXX.rst
index be1fa4248c..a72f7e7104 100644
--- a/Help/envvar/OBJCXX.rst
+++ b/Help/envvar/OBJCXX.rst
@@ -9,3 +9,6 @@ which the value for ``OBJCXX`` is stored in the cache as
:variable:`CMAKE_OBJCXX_COMPILER <CMAKE_<LANG>_COMPILER>`. For any configuration
run (including the first), the environment variable will be ignored if the
:variable:`CMAKE_OBJCXX_COMPILER <CMAKE_<LANG>_COMPILER>` variable is defined.
+
+If ``OBJCXX`` is not defined, the :envvar:`CXX` environment variable will
+be checked instead.