summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeFortranCompiler.cmake.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-07-30 17:46:51 (GMT)
committerBrad King <brad.king@kitware.com>2009-07-30 17:46:51 (GMT)
commit68434483791bb4b1a5b64bcc701cd3625f438eb3 (patch)
tree49e96e2a25ce84b07152fc0da632688cad491845 /Modules/CMakeFortranCompiler.cmake.in
parentfcab87c9f802965318bee033c2fa3ff27cfbfec7 (diff)
downloadCMake-68434483791bb4b1a5b64bcc701cd3625f438eb3.zip
CMake-68434483791bb4b1a5b64bcc701cd3625f438eb3.tar.gz
CMake-68434483791bb4b1a5b64bcc701cd3625f438eb3.tar.bz2
Pass Fortran90 test result to try-compile
This stores CMAKE_Fortran_COMPILER_SUPPORTS_F90 in the Fortran compiler information file CMakeFiles/CMakeFortranCompiler.cmake instead of in CMakeCache.txt. This file makes the result available to try-compile projects.
Diffstat (limited to 'Modules/CMakeFortranCompiler.cmake.in')
-rw-r--r--Modules/CMakeFortranCompiler.cmake.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/CMakeFortranCompiler.cmake.in b/Modules/CMakeFortranCompiler.cmake.in
index afd9ce0..d8a9ed6 100644
--- a/Modules/CMakeFortranCompiler.cmake.in
+++ b/Modules/CMakeFortranCompiler.cmake.in
@@ -15,6 +15,8 @@ ENDIF(CMAKE_COMPILER_IS_CYGWIN)
SET(CMAKE_Fortran_COMPILER_ENV_VAR "FC")
+SET(CMAKE_Fortran_COMPILER_SUPPORTS_F90 @CMAKE_Fortran_COMPILER_SUPPORTS_F90@)
+
IF(CMAKE_COMPILER_IS_MINGW)
SET(MINGW 1)
ENDIF(CMAKE_COMPILER_IS_MINGW)