summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-05-23 19:01:15 (GMT)
committerBrad King <brad.king@kitware.com>2006-05-23 19:01:15 (GMT)
commit52a8004b9844cf88d4448d1c718dda00bf23a70b (patch)
treea4d7467426ee1de04ae93a087ae338dc3e6abf62 /Source/cmLocalVisualStudio7Generator.cxx
parent9a74185695ef8312310576d6716d1626ed75a944 (diff)
downloadCMake-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.cxx6
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.