BUG: fix for bug# 3664
This commit is contained in:
parent
4f304e7a07
commit
8750b1960e
@ -1021,7 +1021,19 @@ void cmLocalVisualStudio7Generator::OutputDefineFlags(const char* flags,
|
|||||||
// 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.
|
||||||
cmSystemTools::ReplaceString(define, "\"", "\\"");
|
cmSystemTools::ReplaceString(define, "\"", "\\"");
|
||||||
|
// if the define has something in it that is not a letter or a number
|
||||||
|
// then quote it
|
||||||
|
if(define.
|
||||||
|
find_first_not_of(
|
||||||
|
"-_abcdefghigklmnopqrstuvwxyz1234567890ABCDEFGHIGKLMNOPQRSTUVWXYZ")
|
||||||
|
!= define.npos)
|
||||||
|
{
|
||||||
fout << """ << define << "",";
|
fout << """ << define << "",";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
fout << define << ",";
|
||||||
|
}
|
||||||
if(!done)
|
if(!done)
|
||||||
{
|
{
|
||||||
pos = defs.find("-D", nextpos);
|
pos = defs.find("-D", nextpos);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user