Skip to content

Commit

Permalink
Map Flang Fortran COMPILER_ID to Clang family of compilers.
Browse files Browse the repository at this point in the history
  • Loading branch information
robinson96 committed Nov 5, 2021
1 parent 4794be6 commit c4eb6a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/SetupCompilerOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ else()
set(Fortran_COMPILER_FAMILY_IS_CLANG 1)
message(STATUS "Fortran Compiler family is Clang")

elseif("${CMAKE_Fortran_COMPILER_ID}" MATCHES "Flang") # For Flang compilers
set(Fortran_COMPILER_FAMILY_IS_CLANG 1 CACHE BOOL "")
message(STATUS "Fortran Compiler family is Clang")

elseif("${CMAKE_Fortran_COMPILER_ID}" STREQUAL "XL")
set(Fortran_COMPILER_FAMILY_IS_XL 1)
message(STATUS "Fortran Compiler family is XL")
Expand Down

0 comments on commit c4eb6a1

Please sign in to comment.