diff options
author | Brad King <brad.king@kitware.com> | 2020-05-14 11:10:09 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-05-14 11:17:48 (GMT) |
commit | 67b9f55d46f934de0954ae83d39169c86039ecea (patch) | |
tree | e90b8d9048d1d85679511afa18db2189c75ce1e9 /Help/envvar | |
parent | ab9be6662f3ab7bf93a5793395d0aeb3c2297e86 (diff) | |
download | CMake-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.rst | 3 | ||||
-rw-r--r-- | Help/envvar/OBJCXX.rst | 3 |
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. |