mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-12 17:19:05 -05:00
cmGeneratorTarget: Add GetUtilityBacktrace API
This commit is contained in:
@@ -382,7 +382,7 @@ void cmComputeTargetDepends::AddTargetDepend(
|
||||
<< "\" of target \"" << depender->GetName() << "\" does not exist.";
|
||||
|
||||
cmListFileBacktrace const* backtrace =
|
||||
depender->Target->GetUtilityBacktrace(dependee_name);
|
||||
depender->GetUtilityBacktrace(dependee_name);
|
||||
if(backtrace)
|
||||
{
|
||||
cm->IssueMessage(messageType, e.str(), *backtrace);
|
||||
|
||||
@@ -1742,6 +1742,12 @@ const std::set<std::string>& cmGeneratorTarget::GetUtilities() const
|
||||
return this->Target->GetUtilities();
|
||||
}
|
||||
|
||||
const cmListFileBacktrace*
|
||||
cmGeneratorTarget::GetUtilityBacktrace(const std::string& u) const
|
||||
{
|
||||
return this->Target->GetUtilityBacktrace(u);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool cmGeneratorTarget::HaveWellDefinedOutputFiles() const
|
||||
{
|
||||
|
||||
@@ -187,6 +187,8 @@ public:
|
||||
const std::vector<std::string>& GetLinkDirectories() const;
|
||||
|
||||
std::set<std::string>const& GetUtilities() const;
|
||||
cmListFileBacktrace const* GetUtilityBacktrace(const std::string& u) const;
|
||||
|
||||
/** Get the macro to define when building sources in this target.
|
||||
If no macro should be defined null is returned. */
|
||||
const char* GetExportMacro() const;
|
||||
|
||||
Reference in New Issue
Block a user