diff options
author | Brad King <brad.king@kitware.com> | 2008-01-02 16:04:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-01-02 16:04:52 (GMT) |
commit | c7de81f9a6ac76904c08f8baf82c815cb01f012f (patch) | |
tree | fcf22d6e386617575979043f5b31731d9097c535 /Source/cmLocalUnixMakefileGenerator3.cxx | |
parent | c8b8e0c702da83bc36d63c89e598cdb97816352d (diff) | |
download | CMake-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.cxx | 12 |
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"; + } } } |