CheckFortranFunctionExists
макрос, проверяющий, существует ли функция Fortran
CHECK_FORTRAN_FUNCTION_EXISTS(ПЕРЕМЕННАЯ_ФУНКЦИИ)
FUNCTION - the name of the Fortran function
VARIABLE - variable to store the result
Will be created as an internal cache variable.
Следующие переменные можно установить перед вызовом этого макроса, чтобы изменить способ выполнения проверки:
CMAKE_REQUIRED_LIBRARIES = list of libraries to link
© 2000–2019 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.12/module/CheckFortranFunctionExists.html