summaryrefslogtreecommitdiff
path: root/Modules/FortranCInterface.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-10-29 10:58:40 -0400
committerBill Hoffman <bill.hoffman@kitware.com>2008-10-29 10:58:40 -0400
commit84a4222314e8cb52781cb2b98dca4c69bb6cf739 (patch)
tree1b3dde4101bdfded6db3a6d500714416b51f6de2 /Modules/FortranCInterface.cmake
parent4eec7b2d03e0173deeb0f7ae29891eefb8ea9bb8 (diff)
downloadcmake-84a4222314e8cb52781cb2b98dca4c69bb6cf739.tar.gz
ENH: add test for FortranCInterface
Diffstat (limited to 'Modules/FortranCInterface.cmake')
-rw-r--r--Modules/FortranCInterface.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/FortranCInterface.cmake b/Modules/FortranCInterface.cmake
index 980c7cb469..8c8c3ac69d 100644
--- a/Modules/FortranCInterface.cmake
+++ b/Modules/FortranCInterface.cmake
@@ -110,9 +110,9 @@ function(discover_fortran_mangling prefix isupper suffix extra_under_score
subroutine sub
end subroutine sub
")
- foreach(pre "_" "" "__")
- foreach(isup TRUE FALSE)
- foreach(post "" "_")
+ foreach(post "_" "")
+ foreach(isup FALSE TRUE)
+ foreach(pre "" "_" "__")
set(worked FALSE)
test_fortran_mangling("${CODE}" "${pre}" ${isup}
"${post}" "function" sub worked )