summaryrefslogtreecommitdiffstats
path: root/Help/envvar
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-05-14 11:10:09 (GMT)
committerBrad King <brad.king@kitware.com>2020-05-14 11:17:48 (GMT)
commit67b9f55d46f934de0954ae83d39169c86039ecea (patch)
treee90b8d9048d1d85679511afa18db2189c75ce1e9 /Help/envvar
parentab9be6662f3ab7bf93a5793395d0aeb3c2297e86 (diff)
downloadCMake-67b9f55d46f934de0954ae83d39169c86039ecea.zip
CMake-67b9f55d46f934de0954ae83d39169c86039ecea.tar.gz
CMake-67b9f55d46f934de0954ae83d39169c86039ecea.tar.bz2
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')
-rw-r--r--Help/envvar/OBJC.rst3
-rw-r--r--Help/envvar/OBJCXX.rst3
2 files changed, 6 insertions, 0 deletions
diff --git a/Help/envvar/OBJC.rst b/Help/envvar/OBJC.rst
index dda809c..30c0d13 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.
diff --git a/Help/envvar/OBJCXX.rst b/Help/envvar/OBJCXX.rst
index be1fa42..a72f7e7 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.