Dont fail if there is no Fortran compiler
This commit is contained in:
parent
5e8722a963
commit
82b81c0bbe
|
@ -64,6 +64,7 @@ else ()
|
||||||
"#define NEEDBUNDERSCORE 1\n")
|
"#define NEEDBUNDERSCORE 1\n")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (CMAKE_Fortran_COMPILER)
|
||||||
get_filename_component(F_COMPILER ${CMAKE_Fortran_COMPILER} NAME_WE)
|
get_filename_component(F_COMPILER ${CMAKE_Fortran_COMPILER} NAME_WE)
|
||||||
string(TOUPPER ${F_COMPILER} F_COMPILER)
|
string(TOUPPER ${F_COMPILER} F_COMPILER)
|
||||||
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue