소스 검색

BUG: Fix parsing of definitions to support REMOVE_DEFINITIONS.

Brad King 19 년 전
부모
커밋
52a8004b98
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      Source/cmLocalVisualStudio7Generator.cxx

+ 6 - 0
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.