mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-07 04:02:23 +03:00
Fortran: Fix check for F90 support
Since commit db76876db5 (Modules: Use new SOURCES_FROM_* try_compile
(1/2), 2022-09-26, v3.25.0-rc1~74^2~1) the variable containing the F90
code was named incorrectly. Thus the compilation test was performed on
an empty source file.
This commit is contained in:
1 parent
d78407d434
commit
eaa32fad4d
1 file changed
+1
-1
@@ -65,7 +65,7 @@ endif()
|
||||
# Test for Fortran 90 support by using an f90-specific construct.
|
||||
if(NOT DEFINED CMAKE_Fortran_COMPILER_SUPPORTS_F90)
|
||||
message(CHECK_START "Checking whether ${CMAKE_Fortran_COMPILER} supports Fortran 90")
|
||||
set(__TestCompiler_testFortranCompilerSource "
|
||||
set(__TestCompiler_testFortranCompilerF90Source "
|
||||
PROGRAM TESTFortran90
|
||||
integer stop ; stop = 1 ; do while ( stop .eq. 0 ) ; end do
|
||||
END PROGRAM TESTFortran90
|
||||
|
||||
Reference in new issue
Block a user