Skip to content
  • Brad King's avatar
    Bias Fortran compiler search with C/C++ compilers · 4debb7ac
    Brad King authored
    When CMAKE_Fortran_COMPILER and ENV{FC} are not defined CMake searches
    for an available Fortran compiler.  This commit teaches the search code
    to look for compiler executables next to the C and C++ compilers if they
    are already found.  Furthermore, we bias the compiler executable name
    preference order based on the vendor of the C and C++ compilers, which
    increases the chance of finding a compatible compiler by default.
    4debb7ac