1
0

CXX.rst 660 B

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