summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-07-01 19:10:08 (GMT)
committerBrad King <brad.king@kitware.com>2013-07-01 19:10:08 (GMT)
commit7b5bc2c6f078480a76d75f1c23b7b32537d2efa9 (patch)
treeb551a686f373d783ec817e09d00a0bc5d67d23c7
parent8a08ab051a4162539356bdcbc5e7900a84c5816a (diff)
downloadCMake-7b5bc2c6f078480a76d75f1c23b7b32537d2efa9.zip
CMake-7b5bc2c6f078480a76d75f1c23b7b32537d2efa9.tar.gz
CMake-7b5bc2c6f078480a76d75f1c23b7b32537d2efa9.tar.bz2
Fortran: Use explicit type in Fortran 90 check
In CMakeTestFortranCompiler we build a test program using a Fortran 90 construct to check whether the compiler supports the language. Some compilers have options to require explicit variable types. Fix the test program to use an explicit variable type so it passes under such a configuration. Suggested-by: Neil Carlson <neil.n.carlson@gmail.com>
-rw-r--r--Modules/CMakeTestFortranCompiler.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeTestFortranCompiler.cmake b/Modules/CMakeTestFortranCompiler.cmake
index e263345..b9e77c5 100644
--- a/Modules/CMakeTestFortranCompiler.cmake
+++ b/Modules/CMakeTestFortranCompiler.cmake
@@ -72,7 +72,7 @@ else()
message(STATUS "Checking whether ${CMAKE_Fortran_COMPILER} supports Fortran 90")
file(WRITE ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/testFortranCompilerF90.f90 "
PROGRAM TESTFortran90
- stop = 1 ; do while ( stop .eq. 0 ) ; end do
+ integer stop ; stop = 1 ; do while ( stop .eq. 0 ) ; end do
END PROGRAM TESTFortran90
")
try_compile(CMAKE_Fortran_COMPILER_SUPPORTS_F90 ${CMAKE_BINARY_DIR}