diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-04-24 16:40:37 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-04-24 16:40:37 (GMT) |
commit | 818b0e5bc1755d72e429ab89391254647c194eb5 (patch) | |
tree | 3d9f48f45fa5d92d9f5717f35a0a837d8d23a863 /Source/cmMakefile.cxx | |
parent | 435a8a70338d73d1f1eb1aa1cd431ee6a369765d (diff) | |
download | CMake-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.cxx | 11 |
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) { |