summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-02-16 21:35:32 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-02-16 21:35:32 (GMT)
commitcb73410ccb8d2c05085b8fc5551215214bf12edd (patch)
tree8d9e562959db6e434bf9288716b5c3f05a4f7112 /Source/cmMakefile.cxx
parentae63ae6a6e48d2c502c7318dce66398183e6dbe4 (diff)
downloadCMake-cb73410ccb8d2c05085b8fc5551215214bf12edd.zip
CMake-cb73410ccb8d2c05085b8fc5551215214bf12edd.tar.gz
CMake-cb73410ccb8d2c05085b8fc5551215214bf12edd.tar.bz2
ENH: more tests are passing
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index c6c8541..cd3b4de 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -2538,3 +2538,17 @@ bool cmMakefile::GetPropertyAsBool(const char* prop) const
}
return false;
}
+
+
+cmTarget* cmMakefile::FindTarget(const char* name)
+{
+ cmTargets& tgts = this->GetTargets();
+ for(cmTargets::iterator l = tgts.begin(); l != tgts.end(); l++)
+ {
+ if(l->first == name)
+ {
+ return &l->second;
+ }
+ }
+ return 0;
+}