MantisBT - CMake
View Issue Details
0008203CMakeCMakepublic2008-11-30 16:402009-01-09 18:04
Matt Williams 
Alex Neundorf 
normalminoralways
closedfixed 
WindowsXP
CMake-2-6 
 
0008203: Windows Code::Blocks generator incompatible with C::B 8.02
If "CodeBlocks - MinGW Makefiles" is selected as the generator in Windows, the produced codeblocks project files don't work. Even a very simple project will fail in CodeBlocks with:

mingw32-make.exe: C:/Documents\ and\ Settings/matt/My\ Documents/cbtest/Makefile: No such file or directory
mingw32-make.exe: *** No rule to make target `C:/Documents\ and\ Settings/matt/My\ Documents/cbtest/Makefile'. Stop.
Process terminated with status 2 (0 minutes, 0 seconds)
0 errors, 0 warnings

As far as I can tell, this is due to the paths being escaped incorrectly. In the .cbp file, the Build Command is set to:

C:/MinGW/bin/mingw32-make.exe -f "C:/Documents\ and\ Settings/matt/My\ Documents/cbtest/Makefile" all

but since the path is quoted, there's no need for the space-escapes. Therefore, the command should be simply:

C:/MinGW/bin/mingw32-make.exe -f "C:/Documents and Settings/matt/My Documents/cbtest/Makefile" all

That is, there is no need for the '\' before spaces in the path.
Code::Blocks 8.02
MinGW 5.1.4
No tags attached.
Issue History
2008-11-30 16:40Matt WilliamsNew Issue
2008-12-15 10:46Bill HoffmanStatusnew => assigned
2008-12-15 10:46Bill HoffmanAssigned To => Alex Neundorf
2008-12-17 03:10bluescarniNote Added: 0014379
2009-01-09 18:04Alex NeundorfNote Added: 0014502
2009-01-09 18:04Alex NeundorfStatusassigned => closed
2009-01-09 18:04Alex NeundorfResolutionopen => fixed
2009-01-09 18:04Alex NeundorfDescription Updated

Notes
(0014379)
bluescarni   
2008-12-17 03:10   
I can confirm this with CMake 2.6.2 and CodeBlocks 8.02. Moving the project from dir "c:\Documents and Settings\....\foo" to "c:\foo" fixed the issue.
(0014502)
Alex Neundorf   
2009-01-09 18:04   
Fixed in cvs trunk, should be in cmake 2.6.3.

Alex