Makefiles: OBJC/OBJCXX commands not added to compile_commands.json
CMake 3.17.1 as well as the latest from the git does not export OBJC and OBJCXX commadns in the compile_commands.json when CMAKE_EXPORT_COMPILE_COMMANDS is set, at least for the Unix Makefiles generator.
I found that this was solved by editing https://gitlab.kitware.com/cmake/cmake/-/blob/v3.17.1/Source/cmMakefileTargetGenerator.cxx#L680 such that lang_has_preprocessor
was also satisfied by (lang == "OBJC") || (lang == "OBJCXX")
Edited by Brad King