CheckFortranCompilerFlag

Check whether the Fortran compiler supports a given flag.

CHECK_Fortran_COMPILER_FLAG(<flag> <var>)

<flag> - the compiler flag
<var>  - variable to store the result
         Will be created as an internal cache variable.

This internally calls the check_fortran_source_compiles macro and sets CMAKE_REQUIRED_DEFINITIONS to <flag>. See help for CheckFortranSourceCompiles for a listing of variables that can otherwise modify the build. The result only tells that the compiler does not give an error message when it encounters the flag. If the flag has any effect or even a specific one is beyond the scope of this module.

© 2000–2019 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.7/module/CheckFortranCompilerFlag.html