summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-07-26 17:26:37 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-07-26 17:26:37 (GMT)
commit35e36b5b762ad173b2f7e98b51e039e26fbd74d9 (patch)
tree578d85fd1a8b6ee2b562770ac10a4ca117e64aef /Source/cmTarget.cxx
parent9b8d15944fc6f8b58364e554d76d9b35136253a2 (diff)
downloadCMake-35e36b5b762ad173b2f7e98b51e039e26fbd74d9.zip
CMake-35e36b5b762ad173b2f7e98b51e039e26fbd74d9.tar.gz
CMake-35e36b5b762ad173b2f7e98b51e039e26fbd74d9.tar.bz2
ENH: make sure source file depends are used to determine if custom commands are used
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx9
1 files 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<std::string> depends = (*i)->GetDepends();
+ if (additionalDeps || depends.size())
{
- std::vector<std::string> depends;
- cmSystemTools::ExpandListArgument(additionalDeps, depends);
+ if(additionalDeps)
+ {
+ cmSystemTools::ExpandListArgument(additionalDeps, depends);
+ }
for(std::vector<std::string>::iterator id = depends.begin();
id != depends.end(); ++id)
{