diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-04-15 17:58:10 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-04-15 17:58:10 (GMT) |
commit | 504d0bc3b38574d8394995b589214ce9cb0f6d3a (patch) | |
tree | ab49a624e100b25ca9ea5bb48624cc8d2e110857 /Source/cmMakefile.cxx | |
parent | a5c3087360b79132c7e3c5004e6a9d14c7e62805 (diff) | |
download | CMake-504d0bc3b38574d8394995b589214ce9cb0f6d3a.zip CMake-504d0bc3b38574d8394995b589214ce9cb0f6d3a.tar.gz CMake-504d0bc3b38574d8394995b589214ce9cb0f6d3a.tar.bz2 |
ENH: ADD REMOVE_DEFINITION command. Fix feature request: Bug #182 - Add opposite to ADD_DEFINITIONS
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index f0e187f..4f287f6 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -766,6 +766,11 @@ void cmMakefile::AddDefineFlag(const char* flag) } +void cmMakefile::RemoveDefineFlag(const char* flag) +{ + cmSystemTools::ReplaceString(m_DefineFlags, flag, " "); +} + void cmMakefile::AddLinkLibrary(const char* lib, cmTarget::LinkLibraryType llt) { m_LinkLibraries.push_back( |