Commit 81ed7d17 authored by Michael Hirsch, Ph.D's avatar Michael Hirsch, Ph.D

checkfortransourcecompiles default: F90

parent 938e5c07
Pipeline #126832 passed with stage
......@@ -25,7 +25,7 @@ Check if given Fortran source compiles and links into an executable.
If ``FAIL_REGEX`` is provided, then failure is determined by checking
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
By default, the test source file will be given a ``.F90`` file extension. The
``SRC_EXT`` option can be used to override this with ``.<extension>`` instead.
The underlying check is performed by the :command:`try_compile` command. The
......@@ -88,7 +88,7 @@ macro(CHECK_Fortran_SOURCE_COMPILES SOURCE VAR)
endif()
endforeach()
if(NOT _SRC_EXT)
set(_SRC_EXT F)
set(_SRC_EXT F90)
endif()
set(MACRO_CHECK_FUNCTION_DEFINITIONS
"-D${VAR} ${CMAKE_REQUIRED_FLAGS}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment