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")
|
||||||
set(FORTRAN_C_MODULE_PREFIX "${prefix}" CACHE INTERNAL
|
|
||||||
"PREFIX for Fortran to c name mangling")
|
|
||||||
set(FORTRAN_C_MODULE_SUFFIX "${suffix}" CACHE INTERNAL
|
|
||||||
"SUFFIX for Fortran to c name mangling")
|
|
||||||
set(FORTRAN_C_MODULE_MANGLING_FOUND TRUE CACHE INTERNAL
|
|
||||||
"SUFFIX for Fortran to c name mangling")
|
|
||||||
else(found)
|
else(found)
|
||||||
set(FORTRAN_C_MODULE_MANGLING_FOUND FALSE CACHE INTERNAL
|
message(STATUS "Failed to find Fortran module linkage")
|
||||||
"Fortran to C Module calling not availible.")
|
|
||||||
endif(found)
|
endif(found)
|
||||||
|
set(FORTRAN_C_MODULE_PREFIX "${prefix}" CACHE INTERNAL
|
||||||
|
"PREFIX for Fortran to c name mangling")
|
||||||
|
set(FORTRAN_C_MODULE_SUFFIX "${suffix}" CACHE INTERNAL
|
||||||
|
"SUFFIX for Fortran to c name mangling")
|
||||||
|
set(FORTRAN_C_MODULE_MANGLING_FOUND ${found} CACHE INTERNAL
|
||||||
|
"Was for Fortran to c name mangling found for modules")
|
||||||
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