1CC 2-- 3 4.. include:: ENV_VAR.txt 5 6Preferred executable for compiling ``C`` language files. Will only be used by 7CMake on the first configuration to determine ``C`` compiler, after which the 8value for ``CC`` is stored in the cache as 9:variable:`CMAKE_C_COMPILER <CMAKE_<LANG>_COMPILER>`. For any configuration run 10(including the first), the environment variable will be ignored if the 11:variable:`CMAKE_C_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 CC="custom-compiler --arg1 --arg2" 20