diff options
author | Brad King <brad.king@kitware.com> | 2006-05-23 19:01:15 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-05-23 19:01:15 (GMT) |
commit | 52a8004b9844cf88d4448d1c718dda00bf23a70b (patch) | |
tree | a4d7467426ee1de04ae93a087ae338dc3e6abf62 /Source/cmLocalVisualStudio7Generator.cxx | |
parent | 9a74185695ef8312310576d6716d1626ed75a944 (diff) | |
download | CMake-52a8004b9844cf88d4448d1c718dda00bf23a70b.zip CMake-52a8004b9844cf88d4448d1c718dda00bf23a70b.tar.gz CMake-52a8004b9844cf88d4448d1c718dda00bf23a70b.tar.bz2 |
BUG: Fix parsing of definitions to support REMOVE_DEFINITIONS.
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r-- | Source/cmLocalVisualStudio7Generator.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx index 8117a26..7c2d720 100644 --- a/Source/cmLocalVisualStudio7Generator.cxx +++ b/Source/cmLocalVisualStudio7Generator.cxx @@ -958,6 +958,12 @@ void cmLocalVisualStudio7Generator::OutputDefineFlags(const char* flags, done = true; } + // Remove trailing whitespace from the definition. + while(!define.empty() && isspace(define[define.size()-1])) + { + define = define.substr(0, define.size()-1); + } + // Double-quotes in the value of the definition must be escaped // with a backslash. The entire definition should be quoted in // the generated xml attribute to avoid confusing the VS parser. |