[cmake-developers] [CMake 0013184]: Invalid Code::Blocks project generated when build path contains spaces

Mantis Bug Tracker mantis at public.kitware.com
Wed May 2 16:48:24 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13184 
====================================================================== 
Reported By:                Erik Jensen
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13184
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-05-02 16:48 EDT
Last Modified:              2012-05-02 16:48 EDT
====================================================================== 
Summary:                    Invalid Code::Blocks project generated when build
path contains spaces
Description: 
When the path to the build directory contains spaces, an extra set of quotes is
added surrounding the build directory in make commands.

E.g., the generated file will contain this:

<Build command="nmake /NOLOGO /f ""C:\Path\Dir with spaces\Makefile"" 
VERBOSE=1 all" />

when it should contain

<Build command="nmake /NOLOGO /f "C:\Path\Dir with spaces\Makefile" 
VERBOSE=1 all" />

Note the extra '"' marks in the former.

Steps to Reproduce: 
1. Generate a build tree using the Code::Blocks NMake generator
2. Open the resulting .cbp file.
3. Notice that the extra quotes make the file invalid XML.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-05-02 16:48 Erik Jensen    New Issue                                    
======================================================================




More information about the cmake-developers mailing list