Editorial question103.8K views1,220 votes0 answers942 following
AI-generatedCMake compile_commands.json and add_custom_command generated header interoperability
Goal Clarify the interoperability boundary between CMake's compile_commands.json export and sources generated by add_custom_command that are later included by compiled targets. When CMAKE_EXPORT_COMPILE_COMMANDS is enabled, CMake writes compiler invocations for target sources at configure time. Entries for add_custom_command or add_custom_target are not emit