diff options
Diffstat (limited to 'Source/cmBorlandMakefileGenerator.cxx')
-rw-r--r-- | Source/cmBorlandMakefileGenerator.cxx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Source/cmBorlandMakefileGenerator.cxx b/Source/cmBorlandMakefileGenerator.cxx index fa69791..17197a0 100644 --- a/Source/cmBorlandMakefileGenerator.cxx +++ b/Source/cmBorlandMakefileGenerator.cxx @@ -161,7 +161,11 @@ OutputBuildObjectFromSource(std::ostream& fout, } // Header files shouldn't have build rules. if(source.IsAHeaderFileOnly()) + { return; + } + + std::string comment = "Build "; std::string objectFile = std::string(shortName) + @@ -248,14 +252,14 @@ void cmBorlandMakefileGenerator::OutputSharedLibraryRule(std::ostream& fout, command += " $(" + this->CreateMakeVariable(name, "_SRC_OBJS") + ") "; std::string command2 = "implib -w "; command2 += libpath + " " + target; - const std::vector<cmSourceFile>& sources = t.GetSourceFiles(); - for(std::vector<cmSourceFile>::const_iterator i = sources.begin(); + const std::vector<cmSourceFile*>& sources = t.GetSourceFiles(); + for(std::vector<cmSourceFile*>::const_iterator i = sources.begin(); i != sources.end(); ++i) { - if(i->GetSourceExtension() == "def") + if((*i)->GetSourceExtension() == "def") { command += ""; - command += i->GetFullPath(); + command += (*i)->GetFullPath(); } } command += "\n|\n"; |