ENH: only check for module linkage if f90 is available
This commit is contained in:
parent
4cb360afd2
commit
351ef7c187
|
@ -169,7 +169,10 @@ function(create_fortran_c_interface NAMESPACE FUNCTIONS HEADER)
|
||||||
set(prefix )
|
set(prefix )
|
||||||
set(suffix )
|
set(suffix )
|
||||||
set(found FALSE)
|
set(found FALSE)
|
||||||
discover_fortran_module_mangling(prefix suffix found)
|
# only try this if the compiler is F90 compatible
|
||||||
|
if(CMAKE_Fortran_COMPILER_SUPPORTS_F90)
|
||||||
|
discover_fortran_module_mangling(prefix suffix found)
|
||||||
|
endif(CMAKE_Fortran_COMPILER_SUPPORTS_F90)
|
||||||
if(found)
|
if(found)
|
||||||
message(STATUS "found Fortran module linkage")
|
message(STATUS "found Fortran module linkage")
|
||||||
set(FORTRAN_C_MODULE_PREFIX "${prefix}" CACHE INTERNAL
|
set(FORTRAN_C_MODULE_PREFIX "${prefix}" CACHE INTERNAL
|
||||||
|
|
Loading…
Reference in New Issue