Skip to content

Commit

Permalink
[cmake] Support more Fortran filename suffixes (#180)
Browse files Browse the repository at this point in the history
These Fortran suffixes are aligned with the `lookupTypeForExtension`
function in `clang/lib/Driver/Types.cpp`.
  • Loading branch information
kawashima-fj authored Nov 22, 2024
1 parent 89fcc5e commit 9f743a8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmake/modules/SingleMultiSource.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ function(llvm_singlesource)
if(DEFINED Source)
set(sources ${Source})
else()
file(GLOB sources *.c *.cpp *.cc *.f *.F *.f90 *.F90 *.f03 *.F03 *.f08 *.F08)
file(GLOB sources
*.c *.cpp *.cc
*.for *.FOR *.fpp *.FPP *.[fF] *.[fF]90 *.[fF]95 *.[fF]03 *.[fF]08)
endif()
foreach(source ${sources})
basename(name ${source})
Expand All @@ -51,7 +53,9 @@ endfunction()
function(llvm_multisource target)
set(sources ${ARGN})
if(NOT sources)
file(GLOB sources *.c *.cpp *.cc *.f *.F *.f90 *.F90 *.f03 *.F03 *.f08 *.F08)
file(GLOB sources
*.c *.cpp *.cc
*.for *.FOR *.fpp *.FPP *.[fF] *.[fF]90 *.[fF]95 *.[fF]03 *.[fF]08)
endif()

llvm_test_executable_no_test(${target} ${sources})
Expand Down

0 comments on commit 9f743a8

Please sign in to comment.