summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-04-24 16:40:37 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-04-24 16:40:37 (GMT)
commit818b0e5bc1755d72e429ab89391254647c194eb5 (patch)
tree3d9f48f45fa5d92d9f5717f35a0a837d8d23a863 /Source/cmMakefile.cxx
parent435a8a70338d73d1f1eb1aa1cd431ee6a369765d (diff)
downloadCMake-818b0e5bc1755d72e429ab89391254647c194eb5.zip
CMake-818b0e5bc1755d72e429ab89391254647c194eb5.tar.gz
CMake-818b0e5bc1755d72e429ab89391254647c194eb5.tar.bz2
BUG: fix build directory problem
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)
{