summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator3.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-01-02 16:04:52 (GMT)
committerBrad King <brad.king@kitware.com>2008-01-02 16:04:52 (GMT)
commitc7de81f9a6ac76904c08f8baf82c815cb01f012f (patch)
treefcf22d6e386617575979043f5b31731d9097c535 /Source/cmLocalUnixMakefileGenerator3.cxx
parentc8b8e0c702da83bc36d63c89e598cdb97816352d (diff)
downloadCMake-c7de81f9a6ac76904c08f8baf82c815cb01f012f.zip
CMake-c7de81f9a6ac76904c08f8baf82c815cb01f012f.tar.gz
CMake-c7de81f9a6ac76904c08f8baf82c815cb01f012f.tar.bz2
ENH: Make the Fortran compiler id available to cmDependsFortran at scanning and module timestamp copy time.
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx
index 8838b42..44307c7 100644
--- a/Source/cmLocalUnixMakefileGenerator3.cxx
+++ b/Source/cmLocalUnixMakefileGenerator3.cxx
@@ -1780,6 +1780,18 @@ void cmLocalUnixMakefileGenerator3
cmakefileStream << "\"" << pi->first << "\"\n";
}
cmakefileStream << " )\n";
+
+ // Tell the dependency scanner what compiler is used.
+ std::string cidVar = "CMAKE_";
+ cidVar += l->first;
+ cidVar += "_COMPILER_ID";
+ const char* cid = this->Makefile->GetDefinition(cidVar.c_str());
+ if(cid && *cid)
+ {
+ cmakefileStream
+ << "SET(CMAKE_" << l->first.c_str() << "_COMPILER_ID \""
+ << cid << "\")\n";
+ }
}
}