summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 4dd27b4..eca4f39 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -361,6 +361,17 @@ void cmMakefile::AddDefinition(const char* name, const char* value)
{
m_Definitions.insert(DefinitionMap::value_type(name, value));
}
+void cmMakefile::AddDefinition(const char* name, bool value)
+{
+ if(value)
+ {
+ m_Definitions.insert(DefinitionMap::value_type(name, "ON"));
+ }
+ else
+ {
+ m_Definitions.insert(DefinitionMap::value_type(name, "OFF"));
+ }
+}
void cmMakefile::SetProjectName(const char* p)
{