MantisBT - CMake
View Issue Details
0013952CMakeCMakepublic2013-02-25 21:592014-06-02 08:38
Timo R. 
Nils Gladitz 
normalmajoralways
closedfixed 
MSVC11Windows7
CMake 2.8.10.2 
CMake 3.0 
0013952: "CodeBlocks - NMake Makefiles" generates broken xml if spaces in path
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.
Place cmake based project somewhere in a path with Spaces on Windows.
Generate using "CodeBlocks - NMake Makefiles".
Look at resulting .cbp file.
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.
No tags attached.
Issue History
2013-02-25 21:59Timo R.New Issue
2013-02-25 22:03Timo R.Note Added: 0032381
2014-01-13 17:18Nils GladitzAssigned To => Nils Gladitz
2014-01-13 17:18Nils GladitzStatusnew => assigned
2014-01-14 09:07Nils GladitzNote Added: 0034935
2014-01-14 09:07Nils GladitzStatusassigned => resolved
2014-01-14 09:07Nils GladitzFixed in Version => CMake 3.0
2014-01-14 09:07Nils GladitzResolutionopen => fixed
2014-06-02 08:38Robert MaynardNote Added: 0036076
2014-06-02 08:38Robert MaynardStatusresolved => closed

Notes
(0032381)
Timo R.   
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   
2014-01-14 09:07   
Fixed by http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=f2b47197;hp=071005add14f426c9326c2fba8771da1e563ac92 [^]
(0036076)
Robert Maynard   
2014-06-02 08:38   
Closing resolved issues that have not been updated in more than 4 months.