Merge pull request #8388 from jordan-woyak/cmake-export-compile-commands CMake: Enable generation of compile_commands.json.