[cmake-developers] [CMake 0013952]: "CodeBlocks - NMake Makefiles" generates broken xml if spaces in path

Mantis Bug Tracker mantis at public.kitware.com
Mon Feb 25 22:00:00 EST 2013


The following issue has been SUBMITTED. 
====================================================================== 
http://cmake.org/Bug/view.php?id=13952 
====================================================================== 
Reported By:                Timo R.
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13952
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2013-02-25 21:59 EST
Last Modified:              2013-02-25 21:59 EST
====================================================================== 
Summary:                    "CodeBlocks - NMake Makefiles" generates broken xml
if spaces in path
Description: 
If there are spaces in the project path, the resulting .cbp project files
contains lines like this:

<Build command="nmake /NOLOGO /f ""C:\Users\BtbN\Documents\Visual Studio
2012\Projects\myproject\build\Makefile""  VERBOSE=1 all" />

Seems like something feels the need to quote the path, but the quotes then break
the xml and make it impossible to open the file in CodeBlocks or QtCreator.

Steps to Reproduce: 
Place cmake based project somewhere in a path with Spaces on Windows.
Generate using "CodeBlocks - NMake Makefiles".
Look at resulting .cbp file.

Additional Information: 
No idea if other CodeBlocks generators are also affected, i can only test the
nmake one on Windows.
On linux, generating "CodeBlocks - Unix Makefiles" with spaces in path seems to
work fine.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-02-25 21:59 Timo R.        New Issue                                    
======================================================================




More information about the cmake-developers mailing list