diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-10-30 21:48:03 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-10-30 21:48:03 (GMT) |
commit | b7f75016a6e9b4a12365221fe5adf7983a7a6419 (patch) | |
tree | 2e60bca249d476acb4ec7daf3d5b537cf8c84780 /Modules/FortranCInterface.cmake | |
parent | a07ab25e141467de942ffe339fdd95225d30f6f2 (diff) | |
download | CMake-b7f75016a6e9b4a12365221fe5adf7983a7a6419.zip CMake-b7f75016a6e9b4a12365221fe5adf7983a7a6419.tar.gz CMake-b7f75016a6e9b4a12365221fe5adf7983a7a6419.tar.bz2 |
ENH: better output if module linkage is not found
Diffstat (limited to 'Modules/FortranCInterface.cmake')
-rw-r--r-- | Modules/FortranCInterface.cmake | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/Modules/FortranCInterface.cmake b/Modules/FortranCInterface.cmake index c7009a4..7e6da5b 100644 --- a/Modules/FortranCInterface.cmake +++ b/Modules/FortranCInterface.cmake @@ -187,16 +187,15 @@ function(create_fortran_c_interface NAMESPACE FUNCTIONS HEADER) endif(CMAKE_Fortran_COMPILER_SUPPORTS_F90) if(found) 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) - set(FORTRAN_C_MODULE_MANGLING_FOUND FALSE CACHE INTERNAL - "Fortran to C Module calling not availible.") + message(STATUS "Failed to find Fortran module linkage") 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) foreach(f ${${FUNCTIONS}}) if(FORTRAN_C_MANGLING_UPPERCASE) |