Tag: Fortran

Fortran is a high-level programming language primarily used for scientific and numerical computing, known for its efficiency and extensive library support.

  • How to set C, C++ or Fortran compiler for CMake

    Written by

    in ,

    To use a different compiler (e.g. Intel Compiler, CLANG or PGI) or a different version then CMake uses by default, one can either set environment variables or modify the CMakeLists.txt file. CMake evaluates the environment variables CC for the C compiler, CXX for the C++ compiler and FC for the Fortran compiler: CC=/path/to/icc cmake ..…

    Read more