summaryrefslogtreecommitdiffstats
path: root/Modules/CheckFortranFunctionExists.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/CheckFortranFunctionExists.cmake')
-rw-r--r--Modules/CheckFortranFunctionExists.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CheckFortranFunctionExists.cmake b/Modules/CheckFortranFunctionExists.cmake
index 4106a06..3ff5853 100644
--- a/Modules/CheckFortranFunctionExists.cmake
+++ b/Modules/CheckFortranFunctionExists.cmake
@@ -8,7 +8,6 @@
# modify the way the check is run:
#
# CMAKE_REQUIRED_LIBRARIES = list of libraries to link
-#
macro(CHECK_FORTRAN_FUNCTION_EXISTS FUNCTION VARIABLE)
if(NOT DEFINED ${VARIABLE})
@@ -24,6 +23,7 @@ macro(CHECK_FORTRAN_FUNCTION_EXISTS FUNCTION VARIABLE)
"
program TESTFortran
external ${FUNCTION}
+ call ${FUNCTION}()
end
"
)