summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-02-22 21:07:09 (GMT)
committerBrad King <brad.king@kitware.com>2013-02-22 21:12:48 (GMT)
commit9f941816348493522f8ddf60e633c1e82d9002cb (patch)
tree60ebca2706246cd5620b8e0fda59870f2f3a587b /Source
parentbed6c388960749b9d93cbb3590896c6a663f83df (diff)
downloadCMake-9f941816348493522f8ddf60e633c1e82d9002cb.zip
CMake-9f941816348493522f8ddf60e633c1e82d9002cb.tar.gz
CMake-9f941816348493522f8ddf60e633c1e82d9002cb.tar.bz2
VS: Restore CMAKE_GENERATOR_FC variable
In commit bed6c388 (VS,Xcode: Remove unused CMAKE_GENERATOR_* variables, 2013-02-19) we removed this variable among others from the VS generator claiming they were all not used. In fact the Fortran compiler detection module CMakeDetermineFortranCompiler.cmake uses CMAKE_GENERATOR_FC even for the Visual Studio IDE generators because it does not use the full IDE compiler id detection like the C and C++ language files do.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGlobalVisualStudio7Generator.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudio7Generator.cxx b/Source/cmGlobalVisualStudio7Generator.cxx
index 154aa32..63cbdb8 100644
--- a/Source/cmGlobalVisualStudio7Generator.cxx
+++ b/Source/cmGlobalVisualStudio7Generator.cxx
@@ -29,6 +29,7 @@ void cmGlobalVisualStudio7Generator
{
mf->AddDefinition("CMAKE_GENERATOR_RC", "rc");
mf->AddDefinition("CMAKE_GENERATOR_NO_COMPILER_ENV", "1");
+ mf->AddDefinition("CMAKE_GENERATOR_FC", "ifort");
this->AddPlatformDefinitions(mf);
// Create list of configurations requested by user's cache, if any.