View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011022CMakeCMakepublic2010-07-21 12:362016-06-10 14:31
ReporterAndreas Mohr 
Assigned ToKitware Robot 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0011022: VS7 .vcproj generator yields invalid, unloadable files: VS_SCC_PROJECTNAME has wrong unescaped conversion to SccProjectName
DescriptionWhile 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
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0041731)
Kitware Robot (administrator)
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.

 Issue History
Date Modified Username Field Change
2010-07-21 12:36 Andreas Mohr New Issue
2011-01-17 16:20 David Cole Assigned To => David Cole
2011-01-17 16:20 David Cole Status new => assigned
2011-10-25 22:20 David Cole Assigned To David Cole =>
2011-10-25 22:20 David Cole Status assigned => backlog
2016-06-10 14:28 Kitware Robot Note Added: 0041731
2016-06-10 14:28 Kitware Robot Status backlog => resolved
2016-06-10 14:28 Kitware Robot Resolution open => moved
2016-06-10 14:28 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team