FC.rst 701 B

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