Skip to content

Commit 82b81c0

Browse files
authored
Dont fail if there is no Fortran compiler
1 parent 5e8722a commit 82b81c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmake/f_check.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ else ()
6464
"#define NEEDBUNDERSCORE 1\n")
6565
endif()
6666

67+
if (CMAKE_Fortran_COMPILER)
6768
get_filename_component(F_COMPILER ${CMAKE_Fortran_COMPILER} NAME_WE)
6869
string(TOUPPER ${F_COMPILER} F_COMPILER)
69-
70+
endif()

0 commit comments

Comments
 (0)