BUG: Fix parsing of definitions to support REMOVE_DEFINITIONS.
This commit is contained in:
parent
9a74185695
commit
52a8004b98
|
@ -958,6 +958,12 @@ void cmLocalVisualStudio7Generator::OutputDefineFlags(const char* flags,
|
||||||
done = true;
|
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
|
// Double-quotes in the value of the definition must be escaped
|
||||||
// with a backslash. The entire definition should be quoted in
|
// with a backslash. The entire definition should be quoted in
|
||||||
// the generated xml attribute to avoid confusing the VS parser.
|
// the generated xml attribute to avoid confusing the VS parser.
|
||||||
|
|
Loading…
Reference in New Issue