diff options
author | Tin Huynh <ahuynh@nvidia.com> | 2021-07-07 18:20:36 -0700 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-05-24 10:37:33 -0400 |
commit | 85749766dff084e433f05b23f9b93c28704ab014 (patch) | |
tree | c85b8209c3a3264969858f88eee06da1c0378b84 /Modules/CMakeDetermineFortranCompiler.cmake | |
parent | f791cd23d408ff7af104d119898c4dd8e1e87688 (diff) | |
download | cmake-85749766dff084e433f05b23f9b93c28704ab014.tar.gz |
LLVMFlang: Add support for LLVM Flang
LLVM Flang (https://github.com/llvm/llvm-project/tree/main/flang) is an LLVM
Fortran compiler that shares the same name as Flang (also known as Classic
Flang). Classic Flang is in active development and is already identified by
CMake as Flang. As such, LLVM Flang will be identified as `LLVMFlang`.
Fixes: #22387
Diffstat (limited to 'Modules/CMakeDetermineFortranCompiler.cmake')
-rw-r--r-- | Modules/CMakeDetermineFortranCompiler.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/CMakeDetermineFortranCompiler.cmake b/Modules/CMakeDetermineFortranCompiler.cmake index 1c4b6eaa55..650c87a707 100644 --- a/Modules/CMakeDetermineFortranCompiler.cmake +++ b/Modules/CMakeDetermineFortranCompiler.cmake @@ -91,6 +91,7 @@ else() set(_Fortran_COMPILER_NAMES_Absoft af95 af90 af77) set(_Fortran_COMPILER_NAMES_PGI pgf95 pgfortran pgf90 pgf77) set(_Fortran_COMPILER_NAMES_Flang flang) + set(_Fortran_COMPILER_NAMES_LLVMFlang flang) set(_Fortran_COMPILER_NAMES_PathScale pathf2003 pathf95 pathf90) set(_Fortran_COMPILER_NAMES_XL xlf) set(_Fortran_COMPILER_NAMES_VisualAge xlf95 xlf90 xlf) |