MantisBT - CMake
View Issue Details
0013184CMakeCMakepublic2012-05-02 16:482016-06-10 14:31
Erik Jensen 
Alex Neundorf 
normalminoralways
closedmoved 
x86_64Windows7
CMake 2.8.8 
 
0013184: Invalid Code::Blocks project generated when build path contains spaces
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.
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.
No tags attached.
Issue History
2012-05-02 16:48Erik JensenNew Issue
2012-05-02 16:49Erik JensenNote Added: 0029391
2012-05-03 13:23Alex NeundorfAssigned To => Alex Neundorf
2012-05-03 13:23Alex NeundorfStatusnew => assigned
2012-08-13 12:44Alex NeundorfStatusassigned => backlog
2012-08-13 12:44Alex NeundorfDescription Updatedbug_revision_view_page.php?rev_id=770#r770
2016-06-10 14:28Kitware RobotNote Added: 0042037
2016-06-10 14:28Kitware RobotStatusbacklog => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0029391)
Erik Jensen   
2012-05-02 16:49   
The first example should be:
<Build command="nmake /NOLOGO /f &quot;"C:\Path\Dir with spaces\Makefile"&quot; VERBOSE=1 all" />
(0042037)
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.