ENH: better output if module linkage is not found
This commit is contained in:
parent
a07ab25e14
commit
b7f75016a6
|
@ -187,16 +187,15 @@ function(create_fortran_c_interface NAMESPACE FUNCTIONS HEADER)
|
||||||
endif(CMAKE_Fortran_COMPILER_SUPPORTS_F90)
|
endif(CMAKE_Fortran_COMPILER_SUPPORTS_F90)
|
||||||
if(found)
|
if(found)
|
||||||
message(STATUS "found Fortran module linkage")
|
message(STATUS "found Fortran module linkage")
|
||||||
|
else(found)
|
||||||
|
message(STATUS "Failed to find Fortran module linkage")
|
||||||
|
endif(found)
|
||||||
set(FORTRAN_C_MODULE_PREFIX "${prefix}" CACHE INTERNAL
|
set(FORTRAN_C_MODULE_PREFIX "${prefix}" CACHE INTERNAL
|
||||||
"PREFIX for Fortran to c name mangling")
|
"PREFIX for Fortran to c name mangling")
|
||||||
set(FORTRAN_C_MODULE_SUFFIX "${suffix}" CACHE INTERNAL
|
set(FORTRAN_C_MODULE_SUFFIX "${suffix}" CACHE INTERNAL
|
||||||
"SUFFIX for Fortran to c name mangling")
|
"SUFFIX for Fortran to c name mangling")
|
||||||
set(FORTRAN_C_MODULE_MANGLING_FOUND TRUE CACHE INTERNAL
|
set(FORTRAN_C_MODULE_MANGLING_FOUND ${found} CACHE INTERNAL
|
||||||
"SUFFIX for Fortran to c name mangling")
|
"Was for Fortran to c name mangling found for modules")
|
||||||
else(found)
|
|
||||||
set(FORTRAN_C_MODULE_MANGLING_FOUND FALSE CACHE INTERNAL
|
|
||||||
"Fortran to C Module calling not availible.")
|
|
||||||
endif(found)
|
|
||||||
endif(NOT FORTRAN_C_MANGLING_FOUND)
|
endif(NOT FORTRAN_C_MANGLING_FOUND)
|
||||||
foreach(f ${${FUNCTIONS}})
|
foreach(f ${${FUNCTIONS}})
|
||||||
if(FORTRAN_C_MANGLING_UPPERCASE)
|
if(FORTRAN_C_MANGLING_UPPERCASE)
|
||||||
|
|
Loading…
Reference in New Issue