From 4cbcd08594697a77aa7d619169706e62e01a07e2 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 13 Dec 2002 17:34:34 -0500 Subject: BUG: Need source file and OBJECT_DEPENDS as dependencies of an object file. --- Source/cmLocalUnixMakefileGenerator.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx index cd7d67e..bb809ea 100644 --- a/Source/cmLocalUnixMakefileGenerator.cxx +++ b/Source/cmLocalUnixMakefileGenerator.cxx @@ -2356,10 +2356,10 @@ OutputBuildObjectFromSource(std::ostream& fout, sourceAndDeps.push_back(sourceFile); // Check for extra object-file dependencies. + std::vector depends; const char* additionalDeps = source.GetProperty("OBJECT_DEPENDS"); if(additionalDeps) { - std::vector depends; cmSystemTools::ExpandListArgument(additionalDeps, depends); for(std::vector::iterator i = depends.begin(); i != depends.end(); ++i) @@ -2371,7 +2371,7 @@ OutputBuildObjectFromSource(std::ostream& fout, this->OutputMakeRule(fout, comment.c_str(), objectFile.c_str(), - sourceFile.c_str(), + sourceAndDeps, commands); } -- cgit v0.12