summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-05-20 20:56:34 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-05-20 20:56:34 (GMT)
commit3031467e33e61d9e7daa3357ee5f6b31c233e7fd (patch)
tree971ff1363cd96f5821c1c59bd633801134578c58 /Source/cmMakefile.cxx
parent17d6f9e17062d0ddf392823ba51e92f31ebdf7d5 (diff)
downloadCMake-3031467e33e61d9e7daa3357ee5f6b31c233e7fd.zip
CMake-3031467e33e61d9e7daa3357ee5f6b31c233e7fd.tar.gz
CMake-3031467e33e61d9e7daa3357ee5f6b31c233e7fd.tar.bz2
ENH: Implement additional make clean files as a directory property instead of cmake variable
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx35
1 files changed, 35 insertions, 0 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index c85ad61..e10b5ad 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -2400,3 +2400,38 @@ bool cmMakefile::CheckInfiniteLoops()
}
return true;
}
+
+void cmMakefile::SetProperty(const char* prop, const char* value)
+{
+ if (!prop)
+ {
+ return;
+ }
+ if (!value)
+ {
+ value = "NOTFOUND";
+ }
+ m_Properties[prop] = value;
+}
+
+const char *cmMakefile::GetProperty(const char* prop) const
+{
+ std::map<cmStdString,cmStdString>::const_iterator i =
+ m_Properties.find(prop);
+ if (i != m_Properties.end())
+ {
+ return i->second.c_str();
+ }
+ return 0;
+}
+
+bool cmMakefile::GetPropertyAsBool(const char* prop) const
+{
+ std::map<cmStdString,cmStdString>::const_iterator i =
+ m_Properties.find(prop);
+ if (i != m_Properties.end())
+ {
+ return cmSystemTools::IsOn(i->second.c_str());
+ }
+ return false;
+}