diff options
author | Michael Hirsch, Ph.D <scivision@users.noreply.github.com> | 2018-12-06 20:09:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-01-10 19:09:12 (GMT) |
commit | 10a1477b631d9173a32827a315aebf1941c87564 (patch) | |
tree | 07e582628ada224c880dd8101d567a159cc4c8f0 /Modules/CheckFortranSourceCompiles.cmake | |
parent | 6092a770f66bff959749170141d44188f4b6f3f1 (diff) | |
download | CMake-10a1477b631d9173a32827a315aebf1941c87564.zip CMake-10a1477b631d9173a32827a315aebf1941c87564.tar.gz CMake-10a1477b631d9173a32827a315aebf1941c87564.tar.bz2 |
CheckFortranSourceRuns: Add module to check if Fortran code runs
Add a Fortran equivalent to the existing `Check{C,CXX}SourceRuns`
modules.
Diffstat (limited to 'Modules/CheckFortranSourceCompiles.cmake')
-rw-r--r-- | Modules/CheckFortranSourceCompiles.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/CheckFortranSourceCompiles.cmake b/Modules/CheckFortranSourceCompiles.cmake index b3e83dd..1820407 100644 --- a/Modules/CheckFortranSourceCompiles.cmake +++ b/Modules/CheckFortranSourceCompiles.cmake @@ -26,7 +26,8 @@ Check if given Fortran source compiles and links into an executable. if anything in the output matches any of the specified regular expressions. By default, the test source file will be given a ``.F`` file extension. The - ``SRC_EXT`` option can be used to override this with ``.<extension>`` instead. + ``SRC_EXT`` option can be used to override this with ``.<extension>`` instead-- + ``.F90`` is a typical choice. The underlying check is performed by the :command:`try_compile` command. The compile and link commands can be influenced by setting any of the following |