MantisBT - CMake
View Issue Details
0015850CMakeCMakepublic2015-11-17 18:212016-05-02 08:30
Jonathan Doman 
 
normalminoralways
closedsuspended 
Linux
CMake 3.4 
 
0015850: Include flags are no longer part of exported compile commands database
When using -DCMAKE_EXPORT_COMPILE_COMMANDS=1 option to generate compilation database, the include directory flags (e.g. -Ipath) are not output.
1. cmake -G "Ninja" -DCMAKE_EXPORT_COMPILE_COMMANDS=1 ...
2. Observe that compile_commands.json is generated, and the commands have a lot of flags but no -I include flags.
(Possibly, this is related to the <FLAGS>/<INCLUDES> split in v3.4. This <INCLUDES> business has completely broken our cmake setup, but I guess it's mostly our fault for redefining compile command formats.)
No tags attached.
Issue History
2015-11-17 18:21Jonathan DomanNew Issue
2015-11-17 18:29Jonathan DomanNote Added: 0039878
2015-11-18 08:49Brad KingStatusnew => resolved
2015-11-18 08:49Brad KingResolutionopen => suspended
2016-05-02 08:30Robert MaynardNote Added: 0040962
2016-05-02 08:30Robert MaynardStatusresolved => closed

Notes
(0039878)
Jonathan Doman   
2015-11-17 18:29   
Actually, I think I reported too hastily. We still haven't been able to fix our actual build commands to account for <INCLUDES>, so it's expected that the database will have the same errors.

This can be closed.
(0040962)
Robert Maynard   
2016-05-02 08:30   
Closing resolved issues that have not been updated in more than 4 months.