[cmake-developers] [CMake 0015031]: visual studio 2012 generator ampersand escaping

Mantis Bug Tracker mantis at public.kitware.com
Tue Jul 22 08:36:46 EDT 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=15031 
====================================================================== 
Reported By:                mscott
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15031
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-07-22 08:36 EDT
Last Modified:              2014-07-22 08:36 EDT
====================================================================== 
Summary:                    visual studio 2012 generator ampersand escaping
Description: 
The Visual Studio 2012 generator does not seem to escape ampersands in source
file paths correctly, resulting in the generated project XML containing errors
and being un-openable with Visual Studio. 

I tested the same config with the Visual Studio 2008 generator and did not
encounter the same issue. When looking at the generated XML, in VS2008 the '&'
character is replaced by '&'. 

Steps to Reproduce: 
Create a target whose sources includes a file path with the '&' character, then
run cmake specifying VS2012 as the generator, open the created solution and
notice that it cannot open the target project. 
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-07-22 08:36 mscott         New Issue                                    
======================================================================



More information about the cmake-developers mailing list