summaryrefslogtreecommitdiff
path: root/Modules/CMakeCXXInformation.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-09-28 09:49:20 -0400
committerBrad King <brad.king@kitware.com>2010-09-28 09:49:20 -0400
commit20f49730ae53576812c9661aa6355d83f02cffde (patch)
treeafa4f674c1f8320c15edf6e0ebba2cc0c78c8045 /Modules/CMakeCXXInformation.cmake
parent4c06e233071bac7821e27fece0c4d597c12798eb (diff)
downloadcmake-20f49730ae53576812c9661aa6355d83f02cffde.tar.gz
Reset platform/compiler info status for each language
In each CMake<lang>Information.cmake file we use an _INCLUDED_FILE variable to track whether a compiler information file has been loaded. Reset this variable for each language. This fixes Fortran under VS generators with the Intel plugin. Previously the variable would be left set true from C and C++ and then Fortran would not load old-style files like Platform/Windows-ifort.
Diffstat (limited to 'Modules/CMakeCXXInformation.cmake')
-rw-r--r--Modules/CMakeCXXInformation.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/CMakeCXXInformation.cmake b/Modules/CMakeCXXInformation.cmake
index 869894c139..680f8fdbdd 100644
--- a/Modules/CMakeCXXInformation.cmake
+++ b/Modules/CMakeCXXInformation.cmake
@@ -26,6 +26,8 @@ ELSE(UNIX)
SET(CMAKE_CXX_OUTPUT_EXTENSION .obj)
ENDIF(UNIX)
+SET(_INCLUDED_FILE 0)
+
# Load compiler-specific information.
IF(CMAKE_CXX_COMPILER_ID)
INCLUDE(Compiler/${CMAKE_CXX_COMPILER_ID}-CXX OPTIONAL)