summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-10-25 12:06:37 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-27 06:44:25 (GMT)
commit278ba2db477fdc8cccd2313eb56e0179234747a0 (patch)
treef4a112e1690b19f018254be7cae7def862d5fc21
parent79c11d23405d3894a254a8c03df5ead32464b109 (diff)
downloadCMake-278ba2db477fdc8cccd2313eb56e0179234747a0.zip
CMake-278ba2db477fdc8cccd2313eb56e0179234747a0.tar.gz
CMake-278ba2db477fdc8cccd2313eb56e0179234747a0.tar.bz2
cmGeneratorTarget: Add API for globally visible IMPORTED
-rw-r--r--Source/cmGeneratorTarget.cxx5
-rw-r--r--Source/cmGeneratorTarget.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index 9376e98..1f74eda 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 c2607a7..da59a98 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<cmCustomCommand> const &GetPreBuildCommands() const;