summaryrefslogtreecommitdiffstats
path: root/Modules/FortranCInterface.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-10-29 23:34:12 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-10-29 23:34:12 (GMT)
commit574530c07db1a2d62e0b9ed4dca38b60dcd0e09e (patch)
tree5a80a8d2e203bcc1162278f6af6c76d34a768b3c /Modules/FortranCInterface.cmake
parent4dd0afd069bdb65c241ff53a11c257ee9c231a7d (diff)
downloadCMake-574530c07db1a2d62e0b9ed4dca38b60dcd0e09e.zip
CMake-574530c07db1a2d62e0b9ed4dca38b60dcd0e09e.tar.gz
CMake-574530c07db1a2d62e0b9ed4dca38b60dcd0e09e.tar.bz2
ENH: fix check for intel windows module mangling
Diffstat (limited to 'Modules/FortranCInterface.cmake')
-rw-r--r--Modules/FortranCInterface.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/FortranCInterface.cmake b/Modules/FortranCInterface.cmake
index 3f86c50..e87bc09 100644
--- a/Modules/FortranCInterface.cmake
+++ b/Modules/FortranCInterface.cmake
@@ -93,6 +93,7 @@ function(discover_fortran_module_mangling prefix suffix found)
test_fortran_mangling("${CODE}" "${interface}"
${FORTRAN_C_MANGLING_UPPERCASE} "" "module" "sub" worked)
if(worked)
+ string(TOLOWER "${interface}" interface)
string(REGEX REPLACE "(.*)test_interface(.*)" "\\1" pre "${interface}")
string(REGEX REPLACE "(.*)test_interface(.*)" "\\2" post "${interface}")
set(${prefix} "${pre}" PARENT_SCOPE)