cmGeneratorTarget: Add API for globally visible IMPORTED

This commit is contained in:
Stephen Kelly 2015-10-25 13:06:37 +01:00
parent 79c11d2340
commit 278ba2db47
2 changed files with 6 additions and 0 deletions

View File

@ -856,6 +856,11 @@ bool cmGeneratorTarget::IsImported() const
return this->Target->IsImported(); return this->Target->IsImported();
} }
bool cmGeneratorTarget::IsImportedGloballyVisible() const
{
return this->Target->IsImportedGloballyVisible();
}
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
const char* cmGeneratorTarget::GetLocationForBuild() const const char* cmGeneratorTarget::GetLocationForBuild() const
{ {

View File

@ -31,6 +31,7 @@ public:
cmLocalGenerator* GetLocalGenerator() const; cmLocalGenerator* GetLocalGenerator() const;
bool IsImported() const; bool IsImported() const;
bool IsImportedGloballyVisible() const;
const char *GetLocation(const std::string& config) const; const char *GetLocation(const std::string& config) const;
std::vector<cmCustomCommand> const &GetPreBuildCommands() const; std::vector<cmCustomCommand> const &GetPreBuildCommands() const;