From eaa32fad4d65863f0d92b530a84cd100b733ab04 Mon Sep 17 00:00:00 2001 From: Simon Maertens Date: Wed, 6 May 2026 17:52:45 +0200 Subject: [PATCH] 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. --- Modules/CMakeTestFortranCompiler.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/CMakeTestFortranCompiler.cmake b/Modules/CMakeTestFortranCompiler.cmake index 04c790b3a8..2a22ff2dee 100644 --- a/Modules/CMakeTestFortranCompiler.cmake +++ b/Modules/CMakeTestFortranCompiler.cmake @@ -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