MantisBT - CMake
View Issue Details
0013652CMakeCMakepublic2012-11-04 09:342013-06-03 09:05
Chuck Frayman 
Peter Kuemmel 
normalminoralways
closedfixed 
Linux
CMake 2.8.10 
CMake 2.8.11 
0013652: Codeblocks Ninja Generator: Unable to build from Codeblocks GUI
When using the Codeblocks: Ninja generator, when building a target from the Codeblocks GUI, ninja is executed as such:

ninja -f /full/path/to/Makefile VERBOSE=1 all

The generated build commands in the .cbp project file contain the switches used for the the Makefile generator.

Problem also reproduced in Windows (MinGW).
- Use cmake to configure a project to use the Codeblocks: Ninja generator
- Open the generated .cbp file in Codeblocks
- Use the "build" command from Codeblocks to attempt to build the project
No tags attached.
patch codeblocks-ninja-build.patch (571) 2012-11-04 09:35
https://public.kitware.com/Bug/file/4554/codeblocks-ninja-build.patch
Issue History
2012-11-04 09:34Chuck FraymanNew Issue
2012-11-04 09:35Chuck FraymanFile Added: codeblocks-ninja-build.patch
2012-11-04 09:38Chuck FraymanNote Added: 0031412
2012-11-16 15:09Maciej DemsNote Added: 0031581
2013-01-05 02:36Peter KuemmelAssigned To => Peter Kuemmel
2013-01-05 02:36Peter KuemmelStatusnew => assigned
2013-01-05 02:39Peter KuemmelNote Added: 0031985
2013-01-05 02:39Peter KuemmelNote Added: 0031986
2013-01-05 02:39Peter KuemmelStatusassigned => resolved
2013-01-05 02:39Peter KuemmelFixed in Version => CMake 2.8.11
2013-01-05 02:39Peter KuemmelResolutionopen => fixed
2013-06-03 09:05Robert MaynardNote Added: 0033178
2013-06-03 09:05Robert MaynardStatusresolved => closed

Notes
(0031412)
Chuck Frayman   
2012-11-04 09:38   
Uploaded patch "codeblocks-ninja-build.patch".

This patch is a possible fix. In cmExtraCodeBlocksGenerator.cxx, function cmExtraCodeBlocksGenerator::BuildMakeCommand, added a condition for the Ninja generator to create the ninja command line to use the default rules file (build.ninja) and the -v flag (verbose).
(0031581)
Maciej Dems   
2012-11-16 15:09   
I confirm the problem. It seems that all the build targets are affected. Did anyone tested this generator at all?
(0031985)
Peter Kuemmel   
2013-01-05 02:39   
I've tested this generator with Qt Creator which doesn't use the command line from this generator.
(0031986)
Peter Kuemmel   
2013-01-05 02:39   
Thanks for the patch!
(0033178)
Robert Maynard   
2013-06-03 09:05   
Closing resolved issues that have not been updated in more than 4 months.