Skip to content

Commit

Permalink
Dont fail if there is no Fortran compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-frbg authored Feb 22, 2024
1 parent 5e8722a commit 82b81c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/f_check.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ else ()
"#define NEEDBUNDERSCORE 1\n")
endif()

if (CMAKE_Fortran_COMPILER)
get_filename_component(F_COMPILER ${CMAKE_Fortran_COMPILER} NAME_WE)
string(TOUPPER ${F_COMPILER} F_COMPILER)

endif()

0 comments on commit 82b81c0

Please sign in to comment.