MantisBT - CMake
View Issue Details
0013374CMakeCMakepublic2012-07-03 21:062016-06-10 14:31
Joe Drago 
Peter Kuemmel 
normalfeaturealways
closedmoved 
CMake 2.8.8 
 
0013374: Ninja: support cmake_depends
It looks like the makefile/NMakefile/jom generators leverage cmake's build-in command cmake_depends in order to generate header dependencies, but the new ninja generator doesn't use this, and instead has specific support for VS. I deal with a large cmake project at work which uses a compiler that is not based in either gcc or comes from MS, and in order for header deps to work at all, we depend on the jom generator's cmake_depends feature.

Is there any way to add a (global?) option for the ninja generator which uses the cmDependsC/cmake_depends calls for implicit deps instead of requiring either -MMD compiler support or cmcldeps?
No tags attached.
Issue History
2012-07-03 21:06Joe DragoNew Issue
2012-07-04 03:12Peter KuemmelNote Added: 0029903
2012-07-04 03:13Peter KuemmelSeverityminor => feature
2012-07-04 03:13Peter KuemmelStatusnew => confirmed
2012-07-04 11:41Joe DragoNote Added: 0029905
2012-08-13 08:46Peter KuemmelNote Added: 0030469
2012-08-13 08:46Peter KuemmelAssigned To => Peter Kuemmel
2012-08-13 08:46Peter KuemmelStatusconfirmed => backlog
2013-02-09 06:57Peter KuemmelSummarycmake_depends support for ninja => Ninja: support cmake_depends
2016-06-10 14:28Kitware RobotNote Added: 0042079
2016-06-10 14:28Kitware RobotStatusbacklog => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0029903)
Peter Kuemmel   
2012-07-04 03:12   
Currently ninja doesn't support cmake_depends.
The only way to support cmake_depends is to patch the cmake generator.

Does your compiler has a option to print out the included headers?
Maybe we could extend cmcldeps compiler support.
(0029905)
Joe Drago   
2012-07-04 11:41   
There is a way to print the included headers to stderr, but that isn't incredibly useful. If there was a way to offer my own (complete) command line for cmcldeps, I could wrap that functionality in a script that would generate a valid deps file.
(0030469)
Peter Kuemmel   
2012-08-13 08:46   
feature request
(0042079)
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.