FC.rst 677 B

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