diff options
author | Brad King <brad.king@kitware.com> | 2020-04-27 12:42:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-04-28 11:03:07 (GMT) |
commit | c4d09fdc6d563570ef779244751e0088c83ea096 (patch) | |
tree | 7468b3211aabf580dab67daf72c3db841a234cc4 /Source/cmMakefileTargetGenerator.cxx | |
parent | 98aa628f0b1ceb04f0d0ac63fc96df57c7c5f76b (diff) | |
download | CMake-c4d09fdc6d563570ef779244751e0088c83ea096.zip CMake-c4d09fdc6d563570ef779244751e0088c83ea096.tar.gz CMake-c4d09fdc6d563570ef779244751e0088c83ea096.tar.bz2 |
Makefiles: Add Objective C/C++ compilations to compile_commands.json
Fixes: #20634
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileTargetGenerator.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx index dd8a389..9d08e07 100644 --- a/Source/cmMakefileTargetGenerator.cxx +++ b/Source/cmMakefileTargetGenerator.cxx @@ -666,8 +666,9 @@ void cmMakefileTargetGenerator::WriteObjectRuleFiles( // At the moment, it is assumed that C, C++, Fortran, and CUDA have both // assembly and preprocessor capabilities. The same is true for the // ability to export compile commands - bool lang_has_preprocessor = ((lang == "C") || (lang == "CXX") || - (lang == "Fortran") || (lang == "CUDA")); + bool lang_has_preprocessor = + ((lang == "C") || (lang == "CXX") || (lang == "OBJC") || + (lang == "OBJCXX") || (lang == "Fortran") || (lang == "CUDA")); bool const lang_has_assembly = lang_has_preprocessor; bool const lang_can_export_cmds = lang_has_preprocessor; |