Skip to content

Provide a way to not pass -DCMAKE_EXPORT_COMPILE_COMMANDS=ON in the cmake invocation #760

Closed
@anarthal

Description

@anarthal

At the moment, mrdocs appends a -DCMAKE_EXPORT_COMPILE_COMMANDS=ON at the end of the command line. This might be too much for some projects, as it generates the compilation database for all targets in the project (as per the cmake docs).

I can't disable some of the targets built by my project, because they're added by dependencies. In this case, I'd like to set the EXPORT_COMPILE_COMMANDS manually for the target I'd like MrDocs to know about. This would allow me to generate a compile_commands.json that has only the targets relevant to MrDocs, without modifying my dependencies.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions