View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013952CMakeCMakepublic2013-02-25 21:592014-06-02 08:38
ReporterTimo R. 
Assigned ToNils Gladitz 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformMSVC11OSWindowsOS Version7
Product VersionCMake 2.8.10.2 
Target VersionFixed in VersionCMake 3.0 
Summary0013952: "CodeBlocks - NMake Makefiles" generates broken xml if spaces in path
DescriptionIf 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 ReproducePlace cmake based project somewhere in a path with Spaces on Windows.
Generate using "CodeBlocks - NMake Makefiles".
Look at resulting .cbp file.
Additional InformationNo 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.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0032381)
Timo R. (reporter)
2013-02-25 22:03

Seems like Mantis parses the HTML/XML escape sequences.
The real xml lines look like this:

<Build command="nmake /NOLOGO /f &quot;"C:\Users\BtbN\Documents\Visual Studio 2012\Projects\myproject\build\Makefile"&quot; VERBOSE=1 all" />
(0034935)
Nils Gladitz (developer)
2014-01-14 09:07

Fixed by http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=f2b47197;hp=071005add14f426c9326c2fba8771da1e563ac92 [^]
(0036076)
Robert Maynard (manager)
2014-06-02 08:38

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2013-02-25 21:59 Timo R. New Issue
2013-02-25 22:03 Timo R. Note Added: 0032381
2014-01-13 17:18 Nils Gladitz Assigned To => Nils Gladitz
2014-01-13 17:18 Nils Gladitz Status new => assigned
2014-01-14 09:07 Nils Gladitz Note Added: 0034935
2014-01-14 09:07 Nils Gladitz Status assigned => resolved
2014-01-14 09:07 Nils Gladitz Fixed in Version => CMake 3.0
2014-01-14 09:07 Nils Gladitz Resolution open => fixed
2014-06-02 08:38 Robert Maynard Note Added: 0036076
2014-06-02 08:38 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team