Skip to content

Commit

Permalink
cmake: simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Nov 17, 2023
1 parent 4acf899 commit 52e9093
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 16 deletions.
18 changes: 6 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,12 @@ include(CheckSourceCompiles)

# --- compiler checks

include(cmake/f18abstract.cmake)
include(cmake/f08contig.cmake)
include(cmake/f18random.cmake)
include(cmake/f18assumed_rank.cmake)
include(cmake/f08kind.cmake)
include(cmake/f18prop.cmake)
include(cmake/f03utf8.cmake)
include(cmake/f03ieee.cmake)
include(cmake/f2Xrank_integer.cmake)
include(cmake/f2Xternary.cmake)
include(cmake/f2Xtokenize.cmake)
include(cmake/f2Xreal16.cmake)
foreach(i IN ITEMS f03ieee f03utf8
f08contig f08kind
f18abstract f18assumed_rank f18prop f18random
f2023rank_integer f2023ternary f2023tokenize f2023real16)
include(cmake/${i}.cmake)
endforeach()

include(cmake/compilers.cmake)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ real, rank(2) :: a
!! Equivalent to real :: a(:,:)
end program
"
f2Xrank_integer)
f2023rank_integer)
2 changes: 1 addition & 1 deletion cmake/f2Xreal16.cmake → cmake/f2023real16.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ check_source_compiles(Fortran
use, intrinsic :: iso_fortran_env, only: real16
end program"
f2Xreal16
f2023real16
)
2 changes: 1 addition & 1 deletion cmake/f2Xternary.cmake → cmake/f2023ternary.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ value = ( a > 0.0 ? a : 0.0)
end program
"
f2Xternary
f2023ternary
)
2 changes: 1 addition & 1 deletion cmake/f2Xtokenize.cmake → cmake/f2023tokenize.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ program toke
intrinsic :: tokenize
end program"
f2Xtokenize
f2023tokenize
)

0 comments on commit 52e9093

Please sign in to comment.