Ryan Prichard | f6283ab | 2022-01-13 17:30:19 -0800 | [diff] [blame] | 1 | CXX |
| 2 | --- |
| 3 | |
| 4 | .. include:: ENV_VAR.txt |
| 5 | |
| 6 | Preferred executable for compiling ``CXX`` language files. Will only be used by |
| 7 | CMake on the first configuration to determine ``CXX`` compiler, after which the |
| 8 | value for ``CXX`` is stored in the cache as |
| 9 | :variable:`CMAKE_CXX_COMPILER <CMAKE_<LANG>_COMPILER>`. For any configuration |
| 10 | run (including the first), the environment variable will be ignored if the |
| 11 | :variable:`CMAKE_CXX_COMPILER <CMAKE_<LANG>_COMPILER>` variable is defined. |
| 12 | |
| 13 | .. note:: |
| 14 | Options that are required to make the compiler work correctly can be included; |
| 15 | they can not be changed. |
| 16 | |
| 17 | .. code-block:: console |
| 18 | |
| 19 | $ export CXX="custom-compiler --arg1 --arg2" |