MantisBT - CMake
View Issue Details
0011022CMakeCMakepublic2010-07-21 12:362016-06-10 14:31
Andreas Mohr 
Kitware Robot 
normalmajoralways
closedmoved 
 
 
0011022: VS7 .vcproj generator yields invalid, unloadable files: VS_SCC_PROJECTNAME has wrong unescaped conversion to SccProjectName
While working with my vcproj2cmake.rb script ( http://sf.net/projects/vcproj2cmake/ [^] ), I noticed that the XML parsing of
Ruby returned a
"$/MyProj", xxxAAAAA
string for an original .vcproj content of
SccProjectName=""$/MyProj", xxxAAAAA"

I'd be tempted to say that Ruby's XML layer is correct, since it de-escapes
XML-escaped quotes as the raw content to return to the script.

Quite ok so far.

What is not ok then is that when getting this written (with proper backslash escapes of quotes!) in my converted CMakeLists.txt as

set_property(TARGET MyProj PROPERTY VS_SCC_PROJECTNAME "\"$/MyProj\", RSCAAAAA")
, after a _reverse_ conversion (heh :-)) it ends up as
SccProjectName=""$/MyProj", xxxAAAAA"
, leading quite obviously to a fatal "cannot load .vcproj" issue in VS2005
due to the duplicate quotes which should have been escaped in part.

It quite obviously seems like
Source/cmLocalVisualStudio7Generator.cxx
is missing an EscapeForXML() call for _at least_ SccProjectName,
but probably several additional .vcproj contents are waiting to be escaped properly, too.

Actually I'm sitting in a rather hard place now since I'm currently unsure how to work around this bug in my vcproj2cmake.rb converter; hopefully it's not too problematic to workaround after all....

Thanks,

Andreas Mohr
No tags attached.
Issue History
2010-07-21 12:36Andreas MohrNew Issue
2011-01-17 16:20David ColeAssigned To => David Cole
2011-01-17 16:20David ColeStatusnew => assigned
2011-10-25 22:20David ColeAssigned ToDavid Cole =>
2011-10-25 22:20David ColeStatusassigned => backlog
2016-06-10 14:28Kitware RobotNote Added: 0041731
2016-06-10 14:28Kitware RobotStatusbacklog => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:28Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0041731)
Kitware Robot   
2016-06-10 14:28   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.