summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeTestFortranCompiler.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-05-06 15:23:41 (GMT)
committerBrad King <brad.king@kitware.com>2010-05-06 15:26:49 (GMT)
commita443308c37c41edf75dabaf87feee33bb57212b6 (patch)
tree7a7b3b69a975baf61ffabe9ee8a57358203a31c5 /Modules/CMakeTestFortranCompiler.cmake
parentaa1450bda1d8a6751e6459e83786918cc0a7124a (diff)
downloadCMake-a443308c37c41edf75dabaf87feee33bb57212b6.zip
CMake-a443308c37c41edf75dabaf87feee33bb57212b6.tar.gz
CMake-a443308c37c41edf75dabaf87feee33bb57212b6.tar.bz2
Load compiler information after configuring it
After configuring CMakeFiles/CMake<lang>Compiler.cmake in the build tree the second time (to store ABI information), include it immediately. This allows any logic and settings in the compiler information files to be used without duplicating it in CMakeDetermineCompilerABI.cmake. The change in commit "Use Fortran ABI detection results conservatively" (2010-05-05) needs this to use the same logic to set CMAKE_SIZEOF_VOID_P during first and later runs of CMake.
Diffstat (limited to 'Modules/CMakeTestFortranCompiler.cmake')
-rw-r--r--Modules/CMakeTestFortranCompiler.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/CMakeTestFortranCompiler.cmake b/Modules/CMakeTestFortranCompiler.cmake
index 6f419c2..61d6336 100644
--- a/Modules/CMakeTestFortranCompiler.cmake
+++ b/Modules/CMakeTestFortranCompiler.cmake
@@ -90,5 +90,6 @@ ELSE(NOT CMAKE_Fortran_COMPILER_WORKS)
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeFortranCompiler.cmake
@ONLY IMMEDIATE # IMMEDIATE must be here for compatibility mode <= 2.0
)
+ INCLUDE(${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeFortranCompiler.cmake)
ENDIF(CMAKE_Fortran_COMPILER_FORCED)
ENDIF(NOT CMAKE_Fortran_COMPILER_WORKS)