ENH: make sure source file depends are used to determine if custom commands are used
This commit is contained in:
parent
9b8d15944f
commit
35e36b5b76
|
@ -62,10 +62,13 @@ void cmTarget::TraceVSDependencies(std::string projFile,
|
||||||
// does this sourcefile have object depends on it?
|
// does this sourcefile have object depends on it?
|
||||||
// If so then add them as well
|
// If so then add them as well
|
||||||
const char* additionalDeps = (*i)->GetProperty("OBJECT_DEPENDS");
|
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;
|
if(additionalDeps)
|
||||||
cmSystemTools::ExpandListArgument(additionalDeps, depends);
|
{
|
||||||
|
cmSystemTools::ExpandListArgument(additionalDeps, depends);
|
||||||
|
}
|
||||||
for(std::vector<std::string>::iterator id = depends.begin();
|
for(std::vector<std::string>::iterator id = depends.begin();
|
||||||
id != depends.end(); ++id)
|
id != depends.end(); ++id)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue