[cmake-commits] hoffman committed cmLocalVisualStudio7Generator.cxx
1.149 1.150
cmake-commits at cmake.org
cmake-commits at cmake.org
Wed Oct 4 11:33:11 EDT 2006
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv17130
Modified Files:
cmLocalVisualStudio7Generator.cxx
Log Message:
BUG: fix for bug# 3664
Index: cmLocalVisualStudio7Generator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmLocalVisualStudio7Generator.cxx,v
retrieving revision 1.149
retrieving revision 1.150
diff -u -d -r1.149 -r1.150
--- cmLocalVisualStudio7Generator.cxx 3 Oct 2006 18:03:12 -0000 1.149
+++ cmLocalVisualStudio7Generator.cxx 4 Oct 2006 15:33:07 -0000 1.150
@@ -1021,7 +1021,19 @@
// with a backslash. The entire definition should be quoted in
// the generated xml attribute to avoid confusing the VS parser.
cmSystemTools::ReplaceString(define, "\"", "\\"");
- fout << """ << 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 << "",";
+ }
+ else
+ {
+ fout << define << ",";
+ }
if(!done)
{
pos = defs.find("-D", nextpos);
More information about the Cmake-commits
mailing list