Преглед изворни кода

Help: CheckFortranFunctionExists: recommend more general CheckSourceCompiles

CheckFortranFunctionExists is really only relevant to Fortran 77 code.
Fortran 90 and newer users should use CheckSourceCompiles instead.
Michael Hirsch пре 4 година
родитељ
комит
d62d0f048f
1 измењених фајлова са 6 додато и 0 уклоњено
  1. 6 0
      Modules/CheckFortranFunctionExists.cmake

+ 6 - 0
Modules/CheckFortranFunctionExists.cmake

@@ -20,6 +20,12 @@ Check if a Fortran function exists.
   ``<result>``
     variable to store the result; will be created as an internal cache variable.
 
+.. note::
+
+  This command does not detect functions in Fortran modules. In general it is
+  recommended to use :module:`CheckSourceCompiles` instead to determine if a
+  Fortran function or subroutine is available.
+
 The following variables may be set before calling this macro to modify
 the way the check is run: