From 278ba2db477fdc8cccd2313eb56e0179234747a0 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Sun, 25 Oct 2015 13:06:37 +0100 Subject: [PATCH] cmGeneratorTarget: Add API for globally visible IMPORTED --- Source/cmGeneratorTarget.cxx | 5 +++++ Source/cmGeneratorTarget.h | 1 + 2 files changed, 6 insertions(+) diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index 9376e98ae..1f74eda9a 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -856,6 +856,11 @@ bool cmGeneratorTarget::IsImported() const return this->Target->IsImported(); } +bool cmGeneratorTarget::IsImportedGloballyVisible() const +{ + return this->Target->IsImportedGloballyVisible(); +} + //---------------------------------------------------------------------------- const char* cmGeneratorTarget::GetLocationForBuild() const { diff --git a/Source/cmGeneratorTarget.h b/Source/cmGeneratorTarget.h index c2607a725..da59a98be 100644 --- a/Source/cmGeneratorTarget.h +++ b/Source/cmGeneratorTarget.h @@ -31,6 +31,7 @@ public: cmLocalGenerator* GetLocalGenerator() const; bool IsImported() const; + bool IsImportedGloballyVisible() const; const char *GetLocation(const std::string& config) const; std::vector const &GetPreBuildCommands() const;