summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-10-26 21:18:20 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-27 06:44:25 (GMT)
commit7a6caae1a78e8d67422b144ceffdd97595f67683 (patch)
tree17f4dc4caf0a2862c368c15482b768655b95911c /Source/cmMakefile.cxx
parent0fb187cc589b83ded107d9a9a1971830efb6c751 (diff)
downloadCMake-7a6caae1a78e8d67422b144ceffdd97595f67683.zip
CMake-7a6caae1a78e8d67422b144ceffdd97595f67683.tar.gz
CMake-7a6caae1a78e8d67422b144ceffdd97595f67683.tar.bz2
cmMakefile: Add imported target accessor
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 8f72f67..ffe92af 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -1766,6 +1766,18 @@ const char* cmMakefile::GetCurrentBinaryDirectory() const
return this->StateSnapshot.GetDirectory().GetCurrentBinary();
}
+std::vector<cmTarget*> cmMakefile::GetImportedTargets() const
+{
+ std::vector<cmTarget*> tgts;
+ tgts.reserve(this->ImportedTargets.size());
+ for (TargetMap::const_iterator it = this->ImportedTargets.begin();
+ it != this->ImportedTargets.end(); ++it)
+ {
+ tgts.push_back(it->second);
+ }
+ return tgts;
+}
+
//----------------------------------------------------------------------------
void cmMakefile::AddIncludeDirectories(const std::vector<std::string> &incs,
bool before)