瀏覽代碼

ENH: fix check for intel windows module mangling

Bill Hoffman 17 年之前
父節點
當前提交
574530c07d
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Modules/FortranCInterface.cmake

+ 1 - 0
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)