CheckFortranFunctionExists

Check if a Fortran function exists.

check_fortran_function_exists
check_fortran_function_exists(<function> <result>)

where

<function>

the name of the Fortran function

<result>

variable to store the result; will be created as an internal cache variable.

備註

This command does not detect functions in Fortran modules. In general it is recommended to use 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:

CMAKE_REQUIRED_LINK_OPTIONS

在 3.14 版被加入.

A ;-list of options to add to the link command (see try_compile() for further details).

CMAKE_REQUIRED_LIBRARIES

A ;-list of libraries to add to the link command. These can be the name of system libraries or they can be Imported Targets (see try_compile() for further details).

CMAKE_REQUIRED_LINK_DIRECTORIES

在 3.31 版被加入.

A ;-list of libraries search paths to pass to the linker (see try_compile() for further details).