From 35e36b5b762ad173b2f7e98b51e039e26fbd74d9 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 26 Jul 2005 13:26:37 -0400 Subject: ENH: make sure source file depends are used to determine if custom commands are used --- Source/cmTarget.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 4bcfda9..77491ff 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -62,10 +62,13 @@ void cmTarget::TraceVSDependencies(std::string projFile, // does this sourcefile have object depends on it? // If so then add them as well const char* additionalDeps = (*i)->GetProperty("OBJECT_DEPENDS"); - if (additionalDeps) + std::vector depends = (*i)->GetDepends(); + if (additionalDeps || depends.size()) { - std::vector depends; - cmSystemTools::ExpandListArgument(additionalDeps, depends); + if(additionalDeps) + { + cmSystemTools::ExpandListArgument(additionalDeps, depends); + } for(std::vector::iterator id = depends.begin(); id != depends.end(); ++id) { -- cgit v0.12