cmGeneratorTarget: Remove unnecessary target type check in dependency tracing
Since commit2600e923a6
(Disallow INTERFACE libraries with add_custom_command(TARGET)., 2014-03-19, v3.0.0-rc3~1^2), we do not trace dependencies of INTERFACE libraries that do not participate in the build system. Therefore we can remove a check of the target type from the implementation that had been added by commit9db9c1fc8b
(cmTarget: Don't try to get sources of an INTERFACE_LIBRARY., 2014-02-14, v3.0.0-rc1~20^2).
This commit is contained in:
parent
6fd7ca5e51
commit
bce82df0aa
@ -2813,7 +2813,6 @@ cmTargetTraceDependencies::cmTargetTraceDependencies(cmGeneratorTarget* target)
|
||||
this->CurrentEntry = nullptr;
|
||||
|
||||
// Queue all the source files already specified for the target.
|
||||
if (target->GetType() != cmStateEnums::INTERFACE_LIBRARY) {
|
||||
std::set<cmSourceFile*> emitted;
|
||||
std::vector<std::string> const& configs =
|
||||
this->Makefile->GetGeneratorConfigs(cmMakefile::IncludeEmptyConfig);
|
||||
@ -2832,13 +2831,11 @@ cmTargetTraceDependencies::cmTargetTraceDependencies(cmGeneratorTarget* target)
|
||||
MessageType::FATAL_ERROR, e.str());
|
||||
return;
|
||||
}
|
||||
if (emitted.insert(sf).second &&
|
||||
this->SourcesQueued.insert(sf).second) {
|
||||
if (emitted.insert(sf).second && this->SourcesQueued.insert(sf).second) {
|
||||
this->SourceQueue.push(sf);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Queue pre-build, pre-link, and post-build rule dependencies.
|
||||
this->CheckCustomCommands(this->GeneratorTarget->GetPreBuildCommands());
|
||||
|
Loading…
Reference in New Issue
Block a user